git.annexia.org
/
goals.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b14ff66
)
Print errors (Failure exceptions) nicely.
author
Richard W.M. Jones
<rjones@redhat.com>
Mon, 23 Dec 2019 20:42:11 +0000
(20:42 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Mon, 23 Dec 2019 20:42:11 +0000
(20:42 +0000)
src/main.ml
patch
|
blob
|
history
diff --git
a/src/main.ml
b/src/main.ml
index
b95d1f5
..
73a53da
100644
(file)
--- a/
src/main.ml
+++ b/
src/main.ml
@@
-97,4
+97,7
@@
let main () =
(* Evaluate the target expressions in turn. *)
Eval.evaluate_targets env targets
-let () = main ()
+let () =
+ try main ()
+ with
+ Failure msg -> prerr_endline msg; exit 1