From 54908ec03fb15b392bafe02ef302961b631c9d1a Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Fri, 20 Nov 2020 20:35:26 -0800 Subject: [PATCH] cache: handle nil result from flightcontrol Signed-off-by: Tonis Tiigi --- cache/refs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cache/refs.go b/cache/refs.go index 2b25235e..8c38ef63 100644 --- a/cache/refs.go +++ b/cache/refs.go @@ -454,6 +454,9 @@ func (sr *immutableRef) prepareRemoteSnapshots(ctx context.Context, dhs DescHand // This layer cannot be prepared without unlazying. return false, nil }) + if err != nil { + return false, err + } return ok.(bool), err }