Fix exception message

This commit is contained in:
Németh Noel 2021-08-10 22:21:19 +02:00
parent c94344a22e
commit 47a07ca219

View File

@ -61,7 +61,7 @@ public class ArgumentNumber<T extends Number> extends Argument<T> {
return value;
} catch (NumberFormatException | NullPointerException e) {
throw new ArgumentSyntaxException("Input is not a number/long", input, NOT_NUMBER_ERROR);
throw new ArgumentSyntaxException("Input is not a number, or it's invalid for the given type", input, NOT_NUMBER_ERROR);
}
}