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 */