Skip to content

Commit 2e7e79f

Browse files
committed
[asllib][www] Print return code for interpretation
1 parent b81fc28 commit 2e7e79f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

asllib/asllib-www/jaslref.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ let run_asl code version exec =
7373
with
7474
| Asllib.Error.ASLException e ->
7575
Printf.eprintf "%s\n%!" (Asllib.Error.error_to_string e)
76-
| Exit _ -> ()
76+
| Exit code ->
77+
if _exec then
78+
Printf.printf "ASL: interpretation completed (exit code %n).\n%!" code
7779

7880
(* Expose to JavaScript *)
7981
let () = Js.Unsafe.global##.runAsl := Js.wrap_callback run_asl

0 commit comments

Comments
 (0)