Better log on error

This commit is contained in:
Laurent Clouet
2015-04-30 20:32:24 +01:00
parent 42f5036d49
commit 77c4760d6b

View File

@@ -562,6 +562,9 @@ public class Client {
command.add(script_file.getAbsolutePath());
}
catch (IOException e) {
StringWriter sw = new StringWriter();
e.printStackTrace(new PrintWriter(sw));
this.log.error("Client:runRenderer exception on script generation, will return UNKNOWN " + e + " stacktrace " + sw.toString());
return Error.Type.UNKNOWN;
}
script_file.deleteOnExit();