mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
fix(api): add handler for internal error
This commit is contained in:
@@ -371,20 +371,20 @@ void handle_api_terminate(int signum)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Execute action
|
//Execute action
|
||||||
// NS_DURING
|
NS_DURING
|
||||||
// {
|
{
|
||||||
ret = [classAction action: context withParam: paramInjected];
|
ret = [classAction action: context withParam: paramInjected];
|
||||||
// }
|
}
|
||||||
// NS_HANDLER
|
NS_HANDLER
|
||||||
// {
|
{
|
||||||
// error = [NSString stringWithFormat: @"Internal error during: %@", action];
|
error = [NSString stringWithFormat: @"Internal error during: %@", action];
|
||||||
// [self errorWithFormat: error];
|
[self errorWithFormat: error];
|
||||||
// [self _sendAPIErrorResponse: theResponse withMessage: error withStatus: 500];
|
[self _sendAPIErrorResponse: theResponse withMessage: error withStatus: 500];
|
||||||
// RELEASE(context);
|
RELEASE(context);
|
||||||
// RELEASE(pool);
|
RELEASE(pool);
|
||||||
// return nil;
|
return nil;
|
||||||
// }
|
}
|
||||||
// NS_ENDHANDLER;
|
NS_ENDHANDLER;
|
||||||
|
|
||||||
|
|
||||||
//Make the response
|
//Make the response
|
||||||
|
|||||||
Reference in New Issue
Block a user