equal
deleted
inserted
replaced
74 fun raised exn name msgs = |
74 fun raised exn name msgs = |
75 let val pos = Position.here (exn_position exn) in |
75 let val pos = Position.here (exn_position exn) in |
76 (case msgs of |
76 (case msgs of |
77 [] => "exception " ^ name ^ " raised" ^ pos |
77 [] => "exception " ^ name ^ " raised" ^ pos |
78 | [msg] => "exception " ^ name ^ " raised" ^ pos ^ ": " ^ msg |
78 | [msg] => "exception " ^ name ^ " raised" ^ pos ^ ": " ^ msg |
79 | _ => cat_lines (("exception " ^ name ^ " raised" ^ pos ^ ":") :: msgs)) |
79 | _ => |
|
80 cat_lines (("exception " ^ name ^ " raised" ^ pos ^ ":") :: |
|
81 map (Markup.markup Markup.item) msgs)) |
80 end; |
82 end; |
81 |
83 |
82 fun exn_msgs (context, ((i, exn), id)) = |
84 fun exn_msgs (context, ((i, exn), id)) = |
83 (case exn of |
85 (case exn of |
84 EXCURSION_FAIL (exn, loc) => |
86 EXCURSION_FAIL (exn, loc) => |