mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-03-21 19:43:32 +00:00
force show stack
This commit is contained in:
@@ -70,7 +70,13 @@ function getJobInfo(job: Bull.Job | undefined, increment = false): string {
|
||||
|
||||
function renderError(e: Error): any {
|
||||
if (e) { // 何故かeがundefinedで来ることがある
|
||||
return e;
|
||||
return {
|
||||
...Object.getOwnPropertyNames(e).reduce((acc, key) => {
|
||||
//@ts-expect-error Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'Error'.
|
||||
acc[key] = e[key];
|
||||
return acc;
|
||||
}, {} as Record<string, any>),
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
stack: '?',
|
||||
|
||||
Reference in New Issue
Block a user