src/ZF/Tools/ind_cases.ML
changeset 18678 dd0c569fa43d
parent 18418 bf448d999b7e
child 18708 4b3dadb4fe33
--- a/src/ZF/Tools/ind_cases.ML	Fri Jan 13 17:39:41 2006 +0100
+++ b/src/ZF/Tools/ind_cases.ML	Sat Jan 14 17:14:06 2006 +0100
@@ -35,10 +35,10 @@
 
 fun smart_cases thy ss read_prop s =
   let
-    fun err () = error ("Malformed set membership statement: " ^ s);
-    val A = read_prop s handle ERROR => err ();
+    fun err msg = cat_error msg ("Malformed set membership statement: " ^ s);
+    val A = read_prop s handle ERROR msg => err msg;
     val c = #1 (Term.dest_Const (Term.head_of (#2 (Ind_Syntax.dest_mem (FOLogic.dest_Trueprop
-      (Logic.strip_imp_concl A)))))) handle TERM _ => err ();
+      (Logic.strip_imp_concl A)))))) handle TERM _ => err "";
   in
     (case Symtab.lookup (IndCasesData.get thy) c of
       NONE => error ("Unknown inductive cases rule for set " ^ quote c)