equal
deleted
inserted
replaced
199 (*Prints exceptions readably to users*) |
199 (*Prints exceptions readably to users*) |
200 fun print_sign_exn_unit thy e = |
200 fun print_sign_exn_unit thy e = |
201 case e of |
201 case e of |
202 THM (msg,i,thms) => |
202 THM (msg,i,thms) => |
203 (writeln ("Exception THM " ^ string_of_int i ^ " raised:\n" ^ msg); |
203 (writeln ("Exception THM " ^ string_of_int i ^ " raised:\n" ^ msg); |
204 List.app print_thm thms) |
204 List.app Display.print_thm thms) |
205 | THEORY (msg,thys) => |
205 | THEORY (msg,thys) => |
206 (writeln ("Exception THEORY raised:\n" ^ msg); |
206 (writeln ("Exception THEORY raised:\n" ^ msg); |
207 List.app (writeln o Context.str_of_thy) thys) |
207 List.app (writeln o Context.str_of_thy) thys) |
208 | TERM (msg,ts) => |
208 | TERM (msg,ts) => |
209 (writeln ("Exception TERM raised:\n" ^ msg); |
209 (writeln ("Exception TERM raised:\n" ^ msg); |