equal
deleted
inserted
replaced
46 | if_context (SOME ctxt) f xs = map (f ctxt) xs; |
46 | if_context (SOME ctxt) f xs = map (f ctxt) xs; |
47 |
47 |
48 fun exn_messages exn_position e = |
48 fun exn_messages exn_position e = |
49 let |
49 let |
50 fun raised exn name msgs = |
50 fun raised exn name msgs = |
51 let val pos = Position.str_of (exn_position exn) in |
51 let val pos = Position.here (exn_position exn) in |
52 (case msgs of |
52 (case msgs of |
53 [] => "exception " ^ name ^ " raised" ^ pos |
53 [] => "exception " ^ name ^ " raised" ^ pos |
54 | [msg] => "exception " ^ name ^ " raised" ^ pos ^ ": " ^ msg |
54 | [msg] => "exception " ^ name ^ " raised" ^ pos ^ ": " ^ msg |
55 | _ => cat_lines (("exception " ^ name ^ " raised" ^ pos ^ ":") :: msgs)) |
55 | _ => cat_lines (("exception " ^ name ^ " raised" ^ pos ^ ":") :: msgs)) |
56 end; |
56 end; |