further condense error details

This commit is contained in:
Hazel K 2024-10-08 10:43:51 -04:00
parent d8e1e4890d
commit d867c2089b

View file

@ -131,10 +131,7 @@ export class QueueProcessorService implements OnApplicationShutdown {
if (!e) return '?';
if (e instanceof Bull.UnrecoverableError) {
return {
message: e.message,
name: 'Bull.UnrecoverableError',
};
return `${e.name}: ${e.message}`;
}
return {