From d763d9597628863b7919547dbedc36469c49dea7 Mon Sep 17 00:00:00 2001 From: Danny Date: Mon, 30 Jan 2023 11:51:32 -0500 Subject: [PATCH] BUG Fix: Restore: Operations (#2316) BUG FIX: Adds clause to return an error if experienced during path building of a collection. ## Description ## Does this PR need a docs update or release note? - [x] :no_entry: No ## Type of change - [x] :bug: Bugfix - related to #2257 ## Test Plan - [x] :muscle: Manual --- src/internal/operations/restore.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/internal/operations/restore.go b/src/internal/operations/restore.go index 3ed84c5f8..7dfd689d6 100644 --- a/src/internal/operations/restore.go +++ b/src/internal/operations/restore.go @@ -309,5 +309,9 @@ func formatDetailsForRestoration( paths[i] = p } + if errs != nil { + return nil, errs + } + return paths, nil }