diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-08-02 13:40:28 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-08-03 00:47:03 +0200 |
commit | 145a309c54b7a9ff46fc588783f58804c23b09ab (patch) | |
tree | bddf8b68ab2f44cc7d4bc30919d0b584fd1ff2af | |
parent | f9db53870705f7c708e8fb93aed8dd636adafc94 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |