diff --git a/autopilot/accounts.go b/autopilot/accounts.go index 2c52ff099..9e19d26ef 100644 --- a/autopilot/accounts.go +++ b/autopilot/accounts.go @@ -210,6 +210,13 @@ func (err *refillError) Is(target error) bool { return errors.Is(err.err, target) } +func (err *refillError) Error() string { + if err.err == nil { + return "" + } + return err.err.Error() +} + func refillWorkerAccount(ctx context.Context, a AccountStore, am alerts.Alerter, w Worker, workerID string, contract api.ContractMetadata) (accountID rhpv3.Account, refilled bool, rerr *refillError) { wrapErr := func(err error, keysAndValues ...interface{}) *refillError { if err == nil {