# HG changeset patch # User Adam Chlipala # Date 1225109779 14400 # Node ID 659c17441250d46c3d36c85ebff02d0840297fe7 # Parent 5de838fb09501200bcb33cab5683710fc5ecb6fa Switch exit(1) call to uw_error() diff -r 5de838fb0950 -r 659c17441250 CHANGELOG --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/CHANGELOG Mon Oct 27 08:16:19 2008 -0400 @@ -0,0 +1,12 @@ +======== +20081027 +======== + +- On missing inputs, print an error message, but don't exit the web server. + +======== +20081026 +======== + +- Change 'sed' call to work on OSX. +- Avoid including or linking libpq files on apps that don't use SQL. diff -r 5de838fb0950 -r 659c17441250 src/cjr_print.sml --- a/src/cjr_print.sml Sun Oct 26 08:41:17 2008 -0400 +++ b/src/cjr_print.sml Mon Oct 27 08:16:19 2008 -0400 @@ -1845,15 +1845,11 @@ 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,