1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-01 00:08:24 +09:00
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 {
return {
stack: e.stack,
message: e.message,
name: e.name
stack: e?.stack,
message: e?.message,
name: e?.name
};
}

View File

@ -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
}
});
}