src/Pure/Thy/thm_database.ML
changeset 1134 5e9775c196e8
parent 1132 dfb29abcf3c2
child 1136 3910c96551d1
--- a/src/Pure/Thy/thm_database.ML	Mon May 29 14:12:48 1995 +0200
+++ b/src/Pure/Thy/thm_database.ML	Mon May 29 15:04:27 1995 +0200
@@ -74,9 +74,10 @@
                                           else (result desc_inter new_thms))
             end;
 
-      val ignored = constants inter ignore;
-  in if null ignored then () else
-       error ("The following constant(s) must not be used for searching the \
-              \theorem database:\n  " ^ commas (map quote ignored));
-     collect constants true [] end;
+      val look_for = constants \\ ignore;
+  in if null look_for then
+       error ("Only ignored constants specified for theorem database search:\n"
+              ^ commas (map quote ignored))
+     else ();
+     collect look_for true [] end;
 end;