From 78230e4cd638606dd1a52a0ca8ea74effebf4f04 Mon Sep 17 00:00:00 2001 From: NamanJain8 Date: Sat, 12 Jun 2021 01:03:55 +0530 Subject: [PATCH] fix(restore): return nil if there is error --- 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) }