summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-08-02 13:40:28 +0200
committerJo-Philipp Wich <jo@mein.io>2022-08-03 00:47:03 +0200
commit145a309c54b7a9ff46fc588783f58804c23b09ab (patch)
treebddf8b68ab2f44cc7d4bc30919d0b584fd1ff2af
parentf9db53870705f7c708e8fb93aed8dd636adafc94 (diff)
ucode: ignore exit exceptions
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>
-rw-r--r--ucode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucode.c b/ucode.c
index e76f441..c03b6f0 100644
--- 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;