Skip to content

Commit ebe64f7

Browse files
authored
fix(restore): return nil if there is error (#7899) (#8098)
(cherry picked from commit d4aeea2)
1 parent 3bfd269 commit ebe64f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worker/backup_manifest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func getManifestsToRestore(
9595
h x.UriHandler, uri *url.URL, req *pb.RestoreRequest) ([]*Manifest, error) {
9696
manifest, err := GetManifest(h, uri)
9797
if err != nil {
98-
return manifest.Manifests, err
98+
return nil, err
9999
}
100100
return getFilteredManifests(h, manifest.Manifests, req)
101101
}

0 commit comments

Comments
 (0)