tuned error propagation msg;
authorwenzelm
Fri, 18 Jul 1997 14:06:54 +0200
changeset 3536 8fb4150e2ad3
parent 3535 19bd6c8274c4
child 3537 79ac9b475621
tuned error propagation msg;
src/Pure/goals.ML
src/Pure/section_utils.ML
--- a/src/Pure/goals.ML	Fri Jul 18 13:57:19 1997 +0200
+++ b/src/Pure/goals.ML	Fri Jul 18 14:06:54 1997 +0200
@@ -215,7 +215,7 @@
       val chorn = read_cterm sign (agoal,propT)
   in  prove_goalw_cterm rths chorn tacsf end
   handle ERROR => error (*from read_cterm?*)
-		("The error above occurred for " ^ quote agoal);
+		("The error(s) above occurred for " ^ quote agoal);
 
 (*String version with no meta-rewrite-rules*)
 fun prove_goal thy = prove_goalw thy [];
@@ -318,7 +318,7 @@
 fun goalw thy rths agoal = 
   goalw_cterm rths (read_cterm(sign_of thy)(agoal,propT))
   handle ERROR => error (*from type_assign, etc via prepare_proof*)
-	    ("The error above occurred for " ^ quote agoal);
+	    ("The error(s) above occurred for " ^ quote agoal);
 
 (*String version with no meta-rewrite-rules*)
 fun goal thy = goalw thy [];
--- a/src/Pure/section_utils.ML	Fri Jul 18 13:57:19 1997 +0200
+++ b/src/Pure/section_utils.ML	Fri Jul 18 14:06:54 1997 +0200
@@ -27,7 +27,7 @@
 (*Read a term from string "b", with expected type T*)
 fun readtm sign T b = 
     read_cterm sign (b,T) |> term_of
-    handle ERROR => error ("The error above occurred for " ^ b);
+    handle ERROR => error ("The error(s) above occurred for " ^ b);
 
 (*From HOL/ex/meson.ML: raises exception if no rules apply -- unlike RL*)
 fun tryres (th, rl::rls) = (th RS rl handle THM _ => tryres(th,rls))