mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-25 07:00:33 +00:00
(fix) don't abort on unhandled requests
This commit is contained in:
+6
-2
@@ -403,8 +403,12 @@ static BOOL debugLeaks;
|
|||||||
- (WOResponse *) handleException: (NSException *) _exc
|
- (WOResponse *) handleException: (NSException *) _exc
|
||||||
inContext: (WOContext *) _ctx
|
inContext: (WOContext *) _ctx
|
||||||
{
|
{
|
||||||
printf("EXCEPTION: %s\n", [[_exc description] cString]);
|
WOResponse *resp;
|
||||||
abort();
|
|
||||||
|
NSLog(@"EXCEPTION: %s\n", [[_exc description] cString]);
|
||||||
|
resp = [WOResponse responseWithRequest: [_ctx request]];
|
||||||
|
[resp setStatus: 501];
|
||||||
|
return resp;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* runtime maintenance */
|
/* runtime maintenance */
|
||||||
|
|||||||
Reference in New Issue
Block a user