more informative errors, with optional exception trace as in Command_Line.tool;
authorwenzelm
Thu, 20 Oct 2022 17:05:06 +0200
changeset 76344 adb3f8d33838
parent 76343 6a6f650cc5a2
child 76345 ea79c21bcc47
more informative errors, with optional exception trace as in Command_Line.tool;
src/Tools/jEdit/src/jedit_main.scala
src/Tools/jEdit/src/session_build.scala
--- a/src/Tools/jEdit/src/jedit_main.scala	Thu Oct 20 14:59:39 2022 +0200
+++ b/src/Tools/jEdit/src/jedit_main.scala	Thu Oct 20 17:05:06 2022 +0200
@@ -128,7 +128,7 @@
         catch {
           case exn: Throwable =>
             GUI.init_laf()
-            GUI.dialog(null, "Isabelle", GUI.scrollable_text(Exn.message(exn)))
+            GUI.dialog(null, "Isabelle main", GUI.scrollable_text(Exn.print(exn)))
             sys.exit(Process_Result.RC.failure)
         }
       }
--- a/src/Tools/jEdit/src/session_build.scala	Thu Oct 20 14:59:39 2022 +0200
+++ b/src/Tools/jEdit/src/session_build.scala	Thu Oct 20 17:05:06 2022 +0200
@@ -29,7 +29,7 @@
       }
       catch {
         case exn: Throwable =>
-          GUI.dialog(view, "Isabelle", GUI.scrollable_text(Exn.message(exn)))
+          GUI.dialog(view, "Isabelle build", GUI.scrollable_text(Exn.print(exn)))
       }
     }
   }