mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-27 14:13:24 +02:00
Fix exception message
This commit is contained in:
parent
c94344a22e
commit
47a07ca219
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user