mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-27 22:38:30 +09:00
parent
79cbf0888c
commit
75cb7f8b36
@ -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 New Issue
Block a user