the_theory/proof: error instead of exception Fail;
authorwenzelm
Thu, 05 Jul 2007 20:01:32 +0200
changeset 23595 7ca68a2c8575
parent 23594 e65e466dda01
child 23596 f8381a95c49c
the_theory/proof: error instead of exception Fail;
src/Pure/context.ML
--- a/src/Pure/context.ML	Thu Jul 05 20:01:31 2007 +0200
+++ b/src/Pure/context.ML	Thu Jul 05 20:01:32 2007 +0200
@@ -475,8 +475,8 @@
 fun mapping f g = cases (Theory o f) (Proof o g);
 fun mapping_result f g = cases (apsnd Theory o f) (apsnd Proof o g);
 
-val the_theory = cases I (fn _ => raise Fail "Ill-typed context: theory expected");
-val the_proof = cases (fn _ => raise Fail "Ill-typed context: proof expected") I;
+val the_theory = cases I (fn _ => error "Ill-typed context: theory expected");
+val the_proof = cases (fn _ => error "Ill-typed context: proof expected") I;
 
 fun map_theory f = Theory o f o the_theory;
 fun map_proof f = Proof o f o the_proof;