From 3d54a104ae97a3218bf58eb38f28c03e26ba7e43 Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Wed, 27 Mar 2019 09:54:39 +0100 Subject: 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 Tested-by: Samuel Mehrbrodt --- .../script/framework/provider/beanshell/ScriptEditorForBeanShell.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripting/java') diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java index 91bd98894798..279e75fb3584 100644 --- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java +++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptEditorForBeanShell.java @@ -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(); -- cgit