mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-05-12 16:46:57 +00:00
collapse AbortErrors
This commit is contained in:
parent
d867c2089b
commit
5171ba7113
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ export class QueueProcessorService implements OnApplicationShutdown {
|
||||||
// 何故かeがundefinedで来ることがある
|
// 何故かeがundefinedで来ることがある
|
||||||
if (!e) return '?';
|
if (!e) return '?';
|
||||||
|
|
||||||
if (e instanceof Bull.UnrecoverableError) {
|
if (e instanceof Bull.UnrecoverableError || e.name === 'AbortError') {
|
||||||
return `${e.name}: ${e.message}`;
|
return `${e.name}: ${e.message}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue