mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
parent
e9e79c688f
commit
ab636cd5df
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