Client: catch Failure exceptions in Client_main

This commit is contained in:
Guillem Rieu 2016-11-22 17:27:00 +01:00 committed by Benjamin Canou
parent 80e1b0f312
commit 3c2453f00d

View File

@ -76,6 +76,9 @@ let main () =
| Cli_entries.Command_failed message ->
Format.eprintf "Command failed, %s.\n%!" message ;
Pervasives.exit 1
| Failure message ->
Format.eprintf "%s%!" message ;
Pervasives.exit 1
| exn ->
Format.printf "Fatal internal error: %s\n%!"
(Printexc.to_string exn) ;