helper/resource: Add retries to err message

This commit is contained in:
Radek Simko 2017-01-20 11:09:04 -08:00
parent be4e5e53a9
commit 6222b3e91d
No known key found for this signature in database
GPG Key ID: 6823F3DCCE01BB19
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ func (e *NotFoundError) Error() string {
return e.Message return e.Message
} }
if e.Retries > 0 {
return fmt.Sprintf("couldn't find resource (%d retries)", e.Retries)
}
return "couldn't find resource" return "couldn't find resource"
} }