From 5d9673415ad232c8b85b2af3d8b6100f7f7399e6 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 a38cdba72..e94f45061 100644 --- a/Main/SOGo.m +++ b/Main/SOGo.m @@ -452,8 +452,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 */