do not handle Error (which matches arbitrary exceptions!), but ERROR _;
authorwenzelm
Fri, 03 Oct 2008 20:10:44 +0200
changeset 28487 13e637e0c876
parent 28486 873726bdfd47
child 28488 18fea7e88ea1
do not handle Error (which matches arbitrary exceptions!), but ERROR _;
src/HOL/Tools/atp_manager.ML
--- a/src/HOL/Tools/atp_manager.ML	Fri Oct 03 20:10:43 2008 +0200
+++ b/src/HOL/Tools/atp_manager.ML	Fri Oct 03 20:10:44 2008 +0200
@@ -203,7 +203,7 @@
          pgiptype = PgipTypes.Pgipstring,
          get = fn () => !atps,
          set = set_atps}
-        handle Error => warning "Preference already exists";
+        handle ERROR _ => warning "Preference already exists";
 
     val _ = ProofGeneralPgip.add_preference "Proof"
         {name = "ATP - Maximum number",
@@ -212,7 +212,7 @@
          pgiptype = PgipTypes.Pgipstring,
          get = fn () => Int.toString (! maximum_atps),
          set = fn str => set_max_atp (the_default 1 (Int.fromString str))}
-        handle Error => warning "Preference already exists";
+        handle ERROR _ => warning "Preference already exists";
 
     val _ = ProofGeneralPgip.add_preference "Proof"
         {name = "ATP - Timeout",
@@ -221,7 +221,7 @@
          pgiptype = PgipTypes.Pgipstring,
          get = fn () => Int.toString (! timeout),
          set = fn str => set_timeout (the_default 60 (Int.fromString str))}
-        handle Error => warning "Preference already exists";
+        handle ERROR _ => warning "Preference already exists";
 
 
   (* named provers *)