diff options
author | Son Ho | 2022-01-27 15:26:20 +0100 |
---|---|---|
committer | Son Ho | 2022-01-27 15:26:20 +0100 |
commit | c821fff1b512e66f0aa588c38f952045084777ac (patch) | |
tree | 60f148fd44df9fe3819bb487d854ff6c3bf8ff3c /src/main.ml | |
parent | f26e6a3f00efd3f4e178c8731ddec403887caa37 (diff) |
Add more printing facilities and fix minor bugs
Diffstat (limited to 'src/main.ml')
-rw-r--r-- | src/main.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.ml b/src/main.ml index 46b54d55..a4de3d7a 100644 --- a/src/main.ml +++ b/src/main.ml @@ -59,7 +59,9 @@ let () = (* Load the module *) let json = Yojson.Basic.from_file !filename in match cfim_module_of_json json with - | Error s -> main_log#error "error: %s\n" s + | Error s -> + main_log#error "error: %s\n" s; + exit 1 | Ok m -> (* Print the module *) main_log#ldebug (lazy ("\n" ^ Print.Module.module_to_string m ^ "\n")); |