We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b772172 commit 8bd9b7eCopy full SHA for 8bd9b7e
src/actions/lifecycle.ts
@@ -336,7 +336,11 @@ export abstract class TasksMixin {
336
const [priorityName, priority] =
337
Object.entries(this._queues).find(([_, queue]) => queue.queueName === queueName) ?? [];
338
args ??= priority?.args ?? this.args;
339
- args = typeof args === 'function' ? args(this as any) : args;
+ try {
340
+ args = typeof args === 'function' ? args(this as any) : args;
341
+ } catch (error: any) {
342
+ throw new Error(`Error while building arguments for ${namespace}#${methodName}: ${error.message}`);
343
+ }
344
this.runningState = { namespace, queueName, methodName };
345
try {
346
await method.apply(this, args);
0 commit comments