From fbc6bb71a89cbfabed4b1dea1a129dc722bbbfd1 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 9 Mar 2017 13:57:27 -0500 Subject: [PATCH] (fix) don't abort on unhandled requests --- Main/SOGo.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Main/SOGo.m b/Main/SOGo.m index 9d20f1421..a0f2b6535 100644 --- a/Main/SOGo.m +++ b/Main/SOGo.m @@ -403,8 +403,12 @@ static BOOL debugLeaks; - (WOResponse *) handleException: (NSException *) _exc inContext: (WOContext *) _ctx { - printf("EXCEPTION: %s\n", [[_exc description] cString]); - abort(); + WOResponse *resp; + + NSLog(@"EXCEPTION: %s\n", [[_exc description] cString]); + resp = [WOResponse responseWithRequest: [_ctx request]]; + [resp setStatus: 501]; + return resp; } /* runtime maintenance */