mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-01-25 03:04:50 +00:00
[AB-143] fixing incorrect parameter exception message, replacing incorrect parameter exception
This commit is contained in:
@@ -239,8 +239,9 @@ public class CommandReceivedHandler extends ListenerAdapter {
|
||||
parsedParameters.add(handler.handle(value, iterators, param.getType(), message));
|
||||
break;
|
||||
}
|
||||
} catch (NoSuchElementException e) {
|
||||
throw new IncorrectParameterException(command, param.getType(), param.getName());
|
||||
} catch (Exception e) {
|
||||
log.warn("Failed to parse parameter with exception.", e);
|
||||
throw new IncorrectParameterException(command, param.getName());
|
||||
}
|
||||
}
|
||||
if(!handlerMatched) {
|
||||
|
||||
Reference in New Issue
Block a user