tuned msgs;
authorwenzelm
Thu, 02 Jun 2005 18:29:58 +0200
changeset 16197 f58a4ff5d6de
parent 16196 abff174ba569
child 16198 cfd070a2cc4d
tuned msgs; exn_message: added Fail; timing: info channel;
src/Pure/Isar/toplevel.ML
--- a/src/Pure/Isar/toplevel.ML	Thu Jun 02 18:29:57 2005 +0200
+++ b/src/Pure/Isar/toplevel.ML	Thu Jun 02 18:29:58 2005 +0200
@@ -229,7 +229,7 @@
 
 fun check_stale state =
   if not (is_stale state) then ()
-  else warning "Stale signature encountered!  Should restart current theory.";
+  else warning "Stale signature encountered!";
 
 end;
 
@@ -466,6 +466,7 @@
   | exn_msg _ UnequalLengths = raised "UnequalLengths" []
   | exn_msg _ Empty = raised "Empty" []
   | exn_msg _ Subscript = raised "Subscript" []
+  | exn_msg _ (Fail msg) = raised "Fail" [msg]
   | exn_msg _ exn = General.exnMessage exn
 and fail_msg detailed kind ((name, pos), exn) =
   "Error in " ^ kind ^ " " ^ quote name ^ Position.str_of pos ^ ":\n" ^ exn_msg detailed exn;
@@ -494,7 +495,7 @@
       if int orelse not int_only then ()
       else warning (command_msg "Interactive-only " tr);
     val (result, opt_exn) =
-      (if ! Output.timing andalso not no_timing then (warning (command_msg "" tr); timeap) else I)
+      (if ! Output.timing andalso not no_timing then (info (command_msg "" tr); timeap) else I)
         (apply_trans int trans) state;
     val _ = if int andalso print andalso not (! quiet) then print_state false result else ();
   in (result, Option.map (fn UNDEF => type_error tr state | exn => exn) opt_exn) end;