From e1c1b8812a7741e3d9c7bc47bbf29f05907a73c0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 17 Apr 2018 18:07:47 -0500 Subject: [PATCH] agent/cache: return the error as part of Get --- agent/cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/cache/cache.go b/agent/cache/cache.go index db9f11a0e9..a9727ab8e6 100644 --- a/agent/cache/cache.go +++ b/agent/cache/cache.go @@ -170,7 +170,7 @@ RETRY_GET: atomic.AddUint64(&c.hits, 1) } - return entry.Value, nil + return entry.Value, entry.Error } }