This commit is contained in:
MeiMei 2020-01-20 01:52:35 +09:00 committed by syuilo
parent 79cbf0888c
commit 75cb7f8b36
2 changed files with 9 additions and 9 deletions

View file

@ -27,9 +27,9 @@ function initializeQueue(name: string) {
function renderError(e: Error): any { function renderError(e: Error): any {
return { return {
stack: e.stack, stack: e?.stack,
message: e.message, message: e?.message,
name: e.name name: e?.name
}; };
} }

View file

@ -81,16 +81,16 @@ export default async (endpoint: string, user: User | null | undefined, app: App
ep: ep.name, ep: ep.name,
ps: data, ps: data,
e: { e: {
message: e.message, message: e?.message,
code: e.name, code: e?.name,
stack: e.stack stack: e?.stack
} }
}); });
throw new ApiError(null, { throw new ApiError(null, {
e: { e: {
message: e.message, message: e?.message,
code: e.name, code: e?.name,
stack: e.stack stack: e?.stack
} }
}); });
} }