Skip to content

Commit

Permalink
clearer error message for command implementors
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 2, 2022
1 parent 394fd01 commit a9395aa
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -353,6 +353,10 @@ else if (Enum.class.isAssignableFrom(paramType)) {
argData.index = cmd.setEnumHandled(argData.name, (Class<? extends Enum>) paramType);
doCast = true;
}
else {
Debug.echoError("Cannot generate executor for command '" + cmdClass.getName() + "': autoExecute method has param '" + argData.name + "' which does not have a valid order specifier (Linear, Prefixed, ...).");
return null;
}
if (argMethod == null) {
Debug.echoError("Cannot generate executor for command '" + cmdClass.getName() + "': autoExecute method has param '" + argData.name + "' of type '" + paramType.getName() + "' which is not supported.");
return null;
Expand Down

0 comments on commit a9395aa

Please sign in to comment.