summaryrefslogtreecommitdiff
path: root/src/c/request.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/request.c')
-rw-r--r--src/c/request.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c/request.c b/src/c/request.c
index f190ec98..1a2c0a93 100644
--- a/src/c/request.c
+++ b/src/c/request.c
@@ -23,9 +23,10 @@ static int try_rollback(uw_context ctx, void *logger_data, uw_logger log_error)
if (r) {
log_error(logger_data, "Error running SQL ROLLBACK\n");
uw_reset(ctx);
- uw_write(ctx, "HTTP/1.1 500 Internal Server Error\n\r");
+ uw_write(ctx, "HTTP/1.1 500 Internal Server Error\r\n");
uw_write(ctx, "Content-type: text/plain\r\n\r\n");
uw_write(ctx, "Error running SQL ROLLBACK\n");
+ uw_set_error_message(ctx, "Database error; you are probably out of storage space.");
}
return r;