Skip to content

Commit

Permalink
minor fixes in debug passes code
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Aug 7, 2013
1 parent aedbe90 commit 5453573
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions typecore.ml
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,9 @@ let make_pass ?inf ctx f =
let t = (try
f v
with
| Fatal_error ->
| Fatal_error (e,p) ->
delay_tabs := old;
raise Fatal_error
raise (Fatal_error (e,p))
| exc when not (Common.raw_defined ctx.com "stack") ->
debug ctx ("FATAL " ^ Printexc.to_string exc);
delay_tabs := old;
Expand Down Expand Up @@ -474,8 +474,7 @@ let exc_protect ctx f (where:string) =
f r
with
| Error (m,p) ->
display_error ctx (error_msg m) p;
raise Fatal_error
raise (Fatal_error (error_msg m,p))
) in
r
Expand Down

0 comments on commit 5453573

Please sign in to comment.