mirror of
https://github.com/Minestom/Minestom.git
synced 2025-03-10 05:39:11 +01: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