Changed tests to ensure exceptions are of right type & right details
This commit is contained in:
@@ -30,7 +30,7 @@ public class LiteralCommandNode extends CommandNode {
|
||||
String expected = literal + (command.length() > literal.length() ? CommandDispatcher.ARGUMENT_SEPARATOR : "");
|
||||
|
||||
if (!command.startsWith(expected)) {
|
||||
throw ERROR_INCORRECT_LITERAL.create(expected);
|
||||
throw ERROR_INCORRECT_LITERAL.create(literal);
|
||||
}
|
||||
|
||||
int start = expected.length();
|
||||
|
||||
Reference in New Issue
Block a user