mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
(fix) don't abort on unhandled requests
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user