explain resolution errors better

This commit is contained in:
Jonathan Shook 2024-01-18 00:23:22 -06:00
parent db78ed41da
commit 3cb47f1ee6

View File

@ -40,7 +40,7 @@ public abstract class NBCommandInfo {
cmdCtor = getType().getConstructor(NBBufferedContainer.class, String.class, String.class);
return cmdCtor.newInstance(parent, cmdName, ctxName);
} catch (NoSuchMethodException | InvocationTargetException | InstantiationException | IllegalAccessException e) {
throw new RuntimeException("Unable to instantiate command via ctor(parent,name,ctx): " + e,e);
throw new RuntimeException("Unable to instantiate command via ctor(parent,name,ctx): " + e + (e.getCause()!=null ? "cause: " + e.getCause().toString() : ""),e);
}
}
}