diff options
author | 2008-10-27 08:16:19 -0400 | |
---|---|---|
committer | 2008-10-27 08:16:19 -0400 | |
commit | 44a709f2f7844fd6c07b4b0979c8e264cd88225e (patch) | |
tree | 51c326529042f167d347f257e4fe8f00c5f7d652 /src/cjr_print.sml | |
parent | 87b4008ca82e6779c48f9be777c0f54ea4c4cca4 (diff) |
Switch exit(1) call to uw_error()
Diffstat (limited to 'src/cjr_print.sml')
-rw-r--r-- | src/cjr_print.sml | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/cjr_print.sml b/src/cjr_print.sml index e26293ab..7c0fd73c 100644 --- a/src/cjr_print.sml +++ b/src/cjr_print.sml @@ -1845,15 +1845,11 @@ fun p_file env (ds, ps) = string (Int.toString n), string ");", newline, - string "if (request == NULL) {", + string "if (request == NULL)", newline, - box [string "printf(\"Missing input ", + box [string "uw_error(ctx, FATAL, \"Missing input ", string x, - string "\\n\");", - newline, - string "exit(1);"], - newline, - string "}", + string "\");"], newline, string "uw_input_", p_ident x, |