Better error message when internal function calls fail

This commit is contained in:
Reinhard Pointner 2017-01-31 00:23:17 +08:00
parent b44df59d55
commit df1c2ca7fd
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ public abstract class ScriptShellBaseClass extends Script {
if (severe) {
log.log(Level.SEVERE, trace(t));
} else {
log.log(Level.WARNING, t::getMessage);
log.log(Level.WARNING, format("%s: %s", t.getClass().getSimpleName(), t.getMessage()));
}
}