mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 08:13:10 +02: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 {
|
function renderError(e: Error): any {
|
||||||
return {
|
return {
|
||||||
stack: e.stack,
|
stack: e?.stack,
|
||||||
message: e.message,
|
message: e?.message,
|
||||||
name: e.name
|
name: e?.name
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,16 +81,16 @@ export default async (endpoint: string, user: User | null | undefined, app: App
|
||||||
ep: ep.name,
|
ep: ep.name,
|
||||||
ps: data,
|
ps: data,
|
||||||
e: {
|
e: {
|
||||||
message: e.message,
|
message: e?.message,
|
||||||
code: e.name,
|
code: e?.name,
|
||||||
stack: e.stack
|
stack: e?.stack
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
throw new ApiError(null, {
|
throw new ApiError(null, {
|
||||||
e: {
|
e: {
|
||||||
message: e.message,
|
message: e?.message,
|
||||||
code: e.name,
|
code: e?.name,
|
||||||
stack: e.stack
|
stack: e?.stack
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue