Fix error log

This commit is contained in:
syuilo 2019-04-12 00:33:26 +09:00
parent d4ad36fa41
commit ab8c6515b8
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
1 changed files with 5 additions and 1 deletions

View File

@ -80,7 +80,11 @@ export default async (endpoint: string, user: User, app: App, data: any, file?:
apiLogger.error(`Internal error occurred in ${ep.name}`, {
ep: ep.name,
ps: data,
e: e
e: {
message: e.message,
code: e.name,
stack: e.stack
}
});
throw new ApiError(null, {
e: {