summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Allsopp <david.allsopp@metastack.com>2019-10-19 10:38:48 +0100
committerDavid Allsopp <david.allsopp@metastack.com>2019-10-19 10:38:48 +0100
commit37acb3bf24626e5989cb8a21c90ed9177d768cc9 (patch)
treeeb12d1fc6baa2cdfdc8dfe77dddb24a2eba839ae
parente2f278c7a4b43ef8e8f171f5a1ddd972312ac8ca (diff)
downloadocaml-37acb3bf24626e5989cb8a21c90ed9177d768cc9.tar.gz
Remove use of Printexc.catch from debugger
Allow the runtime to display details of any uncaught exception (with backtraces, if enabled). Unix.handle_unix_error is still used to convert errors from system calls to a less unmeaningful form.
-rw-r--r--debugger/main.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/debugger/main.ml b/debugger/main.ml
index b37ce86b39..53959a7693 100644
--- a/debugger/main.ml
+++ b/debugger/main.ml
@@ -245,4 +245,4 @@ let main () =
exit 2
let _ =
- Printexc.catch (Unix.handle_unix_error main) ()
+ Unix.handle_unix_error main ()