src/Pure/axclass.ML
changeset 18678 dd0c569fa43d
parent 18574 46ed84a64cf6
child 18708 4b3dadb4fe33
--- a/src/Pure/axclass.ML	Fri Jan 13 17:39:41 2006 +0100
+++ b/src/Pure/axclass.ML	Sat Jan 14 17:14:06 2006 +0100
@@ -274,8 +274,8 @@
     val (c1, c2) = prep_classrel thy raw_cc;
     val txt = quote (Sign.string_of_classrel thy [c1, c2]);
     val _ = message ("Proving class inclusion " ^ txt ^ " ...");
-    val th = Goal.prove thy [] [] (mk_classrel (c1, c2)) (K tac) handle ERROR_MESSAGE msg =>
-      error (msg ^ "\nThe error(s) above occurred while trying to prove " ^ txt);
+    val th = Goal.prove thy [] [] (mk_classrel (c1, c2)) (K tac) handle ERROR msg =>
+      cat_error msg ("The error(s) above occurred while trying to prove " ^ txt);
   in add_classrel_thms [th] thy end;
 
 fun ext_inst_arity prep_arity raw_arity tac thy =
@@ -285,9 +285,8 @@
     val _ = message ("Proving type arity " ^ txt ^ " ...");
     val props = (mk_arities arity);
     val ths = Goal.prove_multi thy [] [] props
-      (fn _ => Tactic.precise_conjunction_tac (length props) 1 THEN tac)
-        handle ERROR_MESSAGE msg =>
-          error (msg ^ "\nThe error(s) above occurred while trying to prove " ^ txt);
+      (fn _ => Tactic.precise_conjunction_tac (length props) 1 THEN tac) handle ERROR msg =>
+        cat_error msg ("\nThe error(s) above occurred while trying to prove " ^ txt);
   in add_arity_thms ths thy end;
 
 in