tangled
alpha
login
or
join now
melse.tngl.sh
/
lens
1
fork
atom
a code review tool
1
fork
atom
overview
issues
pulls
pipelines
fix: catch top-level exceptions in main entry point
melse.tngl.sh
1 month ago
5bfdbb64
3bb2edc7
+7
-1
1 changed file
expand all
collapse all
unified
split
bin
main.ml
+7
-1
bin/main.ml
···
1
1
let () =
2
2
-
match Lwt_main.run (Lens_tui.main ()) with
2
2
+
let result =
3
3
+
try Lwt_main.run (Lens_tui.main ()) with
4
4
+
| exn ->
5
5
+
Printf.eprintf "Fatal: %s\n" (Printexc.to_string exn);
6
6
+
exit 1
7
7
+
in
8
8
+
match result with
3
9
| Ok () -> ()
4
10
| Error err ->
5
11
Printf.eprintf "Error: %s\n" (Core.Error.to_string_hum err);