From 6222b3e91d787e4f3aabc8cb5d1ad9b6b8456c8c Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Fri, 20 Jan 2017 11:09:04 -0800 Subject: [PATCH] helper/resource: Add retries to err message --- helper/resource/error.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helper/resource/error.go b/helper/resource/error.go index 8d5927454..7ee21614b 100644 --- a/helper/resource/error.go +++ b/helper/resource/error.go @@ -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" }