Merge pull request #630 from CocoTheOwner/vDecreeCmd

Print default string instead of full DecreeParam instance
This commit is contained in:
Dan 2021-09-11 07:49:30 -04:00 committed by GitHub
commit 750dc609bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -445,8 +445,8 @@ public class VirtualDecreeCommand {
value = i.getDefaultValue();
}
} catch (DecreeParsingException e) {
Iris.debug("Can't parse parameter value for " + i.getName() + "=" + i + " in " + getPath() + " using handler " + i.getHandler().getClass().getSimpleName());
sender.sendMessage(C.RED + "Cannot convert \"" + i + "\" into a " + i.getType().getSimpleName());
Iris.debug("Can't parse parameter value for " + i.getName() + "=" + i.getParam().defaultValue() + " in " + getPath() + " using handler " + i.getHandler().getClass().getSimpleName());
sender.sendMessage(C.RED + "Cannot convert \"" + i.getParam().defaultValue() + "\" into a " + i.getType().getSimpleName());
return false;
} catch (DecreeWhichException e) {
KList<?> validOptions = i.getHandler().getPossibilities(i.getParam().defaultValue());