Add more details (Retries) to resource.NotFoundError

This commit is contained in:
Radek Simko 2016-03-15 13:58:06 +00:00 committed by Radek Simko
parent 570af34f0f
commit be4e5e53a9
No known key found for this signature in database
GPG Key ID: 6823F3DCCE01BB19
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ func (conf *StateChangeConf) WaitForState() (interface{}, error) {
if notfoundTick > conf.NotFoundChecks {
result.Error = &NotFoundError{
LastError: err,
Retries: notfoundTick,
}
lastResult.Store(result)
return