diff --git a/src/task.ts b/src/task.ts index 7e43496..864f6b0 100644 --- a/src/task.ts +++ b/src/task.ts @@ -144,7 +144,7 @@ export abstract class BaseTask< err, `Task error "${this.nameForHuman}" failed attempt ${ err.attemptNumber - }: ${JSON.stringify(input)}` + }${input ? ': ' + JSON.stringify(input) : ''}` ) if (this._retryConfig.onFailedAttempt) {