ucode: ignore exit exceptions
authorJo-Philipp Wich <jo@mein.io>
Tue, 2 Aug 2022 11:40:28 +0000 (13:40 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 2 Aug 2022 22:47:03 +0000 (00:47 +0200)
A request handler might legitimately call `exit()`, don't raise a server
error in this case.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
ucode.c

diff --git a/ucode.c b/ucode.c
index e76f441ea622778504bc098a353fc76e08343ab2..c03b6f0eb842e711e09f3b7f5557f64c6f3fb811 100644 (file)
--- a/ucode.c
+++ b/ucode.c
@@ -199,8 +199,8 @@ uh_ucode_exception(uc_vm_t *vm, uc_exception_t *ex)
                return;
 
        printf("Status: 500 Internal Server Error\r\n\r\n"
-       "Exception while executing ucode program %s:\n",
-       current_prefix->handler);
+              "Exception while executing ucode program %s:\n",
+              current_prefix->handler);
 
        switch (ex->type) {
        case EXCEPTION_SYNTAX:    printf("Syntax error");    break;