Beanshell: Display full exception message

Useful to see where exactly the error occured

Change-Id: I716f54c4b1286d705b52f19a58f36f28a801e1d0
Reviewed-on: https://gerrit.libreoffice.org/69799
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
This commit is contained in:
Samuel Mehrbrodt
2019-03-27 09:54:39 +01:00
parent 3c72945de8
commit 3d54a104ae

View File

@@ -398,7 +398,7 @@ public class ScriptEditorForBeanShell implements ScriptEditor, ActionListener {
try {
execute();
} catch (Exception invokeException) {
showErrorMessage(invokeException.getMessage());
showErrorMessage(invokeException.toString());
}
} else if (actionCommand.equals("Save")) {
saveTextArea();