From d4aeea212ef708f2857363231d13996916475ad5 Mon Sep 17 00:00:00 2001 From: Naman Jain Date: Fri, 18 Jun 2021 13:25:27 +0530 Subject: [PATCH] fix(restore): return nil if there is error (#7899) --- worker/backup_manifest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/backup_manifest.go b/worker/backup_manifest.go index 2a6eb8ff016..5eeb1cc278d 100644 --- a/worker/backup_manifest.go +++ b/worker/backup_manifest.go @@ -58,7 +58,7 @@ func getManifestsToRestore( h UriHandler, uri *url.URL, req *pb.RestoreRequest) ([]*Manifest, error) { manifest, err := GetManifest(h, uri) if err != nil { - return manifest.Manifests, err + return nil, err } return getFilteredManifests(h, manifest.Manifests, req) }