blob: 2a3c7289d1f957e9b996f5c61b404f0d1bc5b783 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import { HookContext } from '@feathersjs/feathers';
import logger from '../logger';
export default async (context: HookContext): Promise<HookContext> => {
context.result = context.error.message;
context.statusCode = context.error.code;
logger.error(context.error);
return context;
};
|