helper/resource: Add retries to err message
This commit is contained in:
parent
be4e5e53a9
commit
6222b3e91d
|
@ -19,6 +19,10 @@ func (e *NotFoundError) Error() string {
|
|||
return e.Message
|
||||
}
|
||||
|
||||
if e.Retries > 0 {
|
||||
return fmt.Sprintf("couldn't find resource (%d retries)", e.Retries)
|
||||
}
|
||||
|
||||
return "couldn't find resource"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue