Parsing errors during proof reconstruction now give rise to an intelligible error message.
authorpaulson
Tue, 12 Jan 2010 16:55:59 +0000
changeset 34883 77f0d11dec76
parent 34878 d7786f56f081
child 34884 62fcc25162dd
Parsing errors during proof reconstruction now give rise to an intelligible error message.
src/HOL/Tools/res_reconstruct.ML
--- a/src/HOL/Tools/res_reconstruct.ML	Tue Jan 12 13:36:01 2010 +0100
+++ b/src/HOL/Tools/res_reconstruct.ML	Tue Jan 12 16:55:59 2010 +0000
@@ -454,7 +454,7 @@
       val _ = trace "\ndecode_tstp_file: finishing\n"
   in
     isar_header (map #1 fixes) ^ implode ilines ^ "qed\n"
-  end;
+  end handle STREE _ => error "Could not extract proof (ATP output malformed?)";
 
 
 (*=== EXTRACTING PROOF-TEXT === *)