Skip to content
Snippets Groups Projects
Commit 75cb7f8b authored by MeiMei's avatar MeiMei Committed by syuilo
Browse files

Fix #5728 (#5731)

parent 79cbf088
No related branches found
No related tags found
No related merge requests found
......@@ -27,9 +27,9 @@ function initializeQueue(name: string) {
function renderError(e: Error): any {
return {
stack: e.stack,
message: e.message,
name: e.name
stack: e?.stack,
message: e?.message,
name: e?.name
};
}
......
......@@ -81,16 +81,16 @@ export default async (endpoint: string, user: User | null | undefined, app: App
ep: ep.name,
ps: data,
e: {
message: e.message,
code: e.name,
stack: e.stack
message: e?.message,
code: e?.name,
stack: e?.stack
}
});
throw new ApiError(null, {
e: {
message: e.message,
code: e.name,
stack: e.stack
message: e?.message,
code: e?.name,
stack: e?.stack
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment