mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 12:20:21 +01:00
parent
79cbf0888c
commit
75cb7f8b36
2 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue