src/Pure/old_goals.ML
changeset 18678 dd0c569fa43d
parent 18120 41328805d4db
child 19053 358c0eb6d785
--- a/src/Pure/old_goals.ML	Fri Jan 13 17:39:41 2006 +0100
+++ b/src/Pure/old_goals.ML	Sat Jan 14 17:14:06 2006 +0100
@@ -220,7 +220,7 @@
    | e => raise e;
 
 (*Prints an exception, then fails*)
-fun print_sign_exn thy e = (print_sign_exn_unit thy e; raise ERROR);
+fun print_sign_exn thy e = (print_sign_exn_unit thy e; raise ERROR "");
 
 (** the prove_goal.... commands
     Prove theorem using the listed tactics; check it has the specified form.
@@ -252,7 +252,7 @@
 fun prove_goalw thy rths agoal tacsf =
   let val chorn = read_cterm thy (agoal, propT)
   in prove_goalw_cterm_general true rths chorn tacsf end
-  handle ERROR => error (*from read_cterm?*)
+  handle ERROR msg => cat_error msg (*from read_cterm?*)
                 ("The error(s) above occurred for " ^ quote agoal);
 
 (*String version with no meta-rewrite-rules*)
@@ -365,7 +365,7 @@
 (*Version taking the goal as a string*)
 fun agoalw atomic thy rths agoal =
     agoalw_cterm atomic rths (read_cterm thy (agoal, propT))
-    handle ERROR => error (*from type_assign, etc via prepare_proof*)
+    handle ERROR msg => cat_error msg (*from type_assign, etc via prepare_proof*)
         ("The error(s) above occurred for " ^ quote agoal);
 
 val goalw = agoalw false;