excursion: ERROR_MESSAGE;
authorwenzelm
Tue, 01 Dec 1998 14:47:26 +0100
changeset 6002 c1f28f8ec72c
parent 6001 28b0a9891852
child 6003 b382568901f6
excursion: ERROR_MESSAGE; exn_message: ERROR;
src/Pure/Isar/toplevel.ML
--- a/src/Pure/Isar/toplevel.ML	Tue Dec 01 14:46:58 1998 +0100
+++ b/src/Pure/Isar/toplevel.ML	Tue Dec 01 14:47:26 1998 +0100
@@ -254,6 +254,7 @@
   | exn_message (BREAK _) = "Break."
   | exn_message (FAIL (exn, msg)) = cat_lines [exn_message exn, msg]
   | exn_message Interrupt = "Interrupt (exec)."
+  | exn_message ERROR = "ERROR."
   | exn_message (ERROR_MESSAGE msg) = msg
   | exn_message (THEORY (msg, _)) = msg
   | exn_message (ProofContext.CONTEXT (msg, _)) = msg
@@ -341,7 +342,7 @@
 fun excursion trs =
   (case excur trs (State []) of
     State [] => ()
-  | _ => error "Pending blocks at end of excursion");
+  | _ => raise ERROR_MESSAGE "Pending blocks at end of excursion");