Skip to content

Commit

Permalink
[compiler] Print backtraces on Failure too.
Browse files Browse the repository at this point in the history
We keep the case as to not to disturbe the printing, but not sure it
is worth it.
  • Loading branch information
ejgallego authored and hhugo committed Sep 30, 2024
1 parent bd764f9 commit 543d663
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/bin-js_of_ocaml/js_of_ocaml.ml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ let () =
comp;
exit 1
| Failure s ->
let backtrace = Printexc.get_backtrace () in
Format.eprintf "%s: Error: %s@." Sys.argv.(0) s;
prerr_string backtrace;
exit 1
| exc ->
let backtrace = Printexc.get_backtrace () in
Expand Down

0 comments on commit 543d663

Please sign in to comment.