From c5d1ef19d282b8a39ec03f24b76b8843fc4fc551 Mon Sep 17 00:00:00 2001 From: Abhishek Pandey Date: Thu, 13 Apr 2023 19:43:43 -0700 Subject: [PATCH] Fix error with backup list --backup ID (backup created with an older corso version) (#3085) --- #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [ ] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [ ] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Supportability/Tests - [ ] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Issue(s) * # #### Test Plan - [ ] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- src/cli/backup/backup.go | 2 +- src/pkg/repository/repository.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/backup/backup.go b/src/cli/backup/backup.go index 01832fe29..3699eda50 100644 --- a/src/cli/backup/backup.go +++ b/src/cli/backup/backup.go @@ -294,7 +294,7 @@ func genericListCommand(cmd *cobra.Command, bID string, service path.ServiceType return Only(ctx, clues.New("No backup exists with the id "+bID)) } - return Only(ctx, clues.Wrap(err, "Failed to find backup "+bID)) + return Only(ctx, clues.Wrap(errs.Failure(), "Failed to list backup id "+bID)) } b.Print(ctx) diff --git a/src/pkg/repository/repository.go b/src/pkg/repository/repository.go index 2e787a0b2..37510eae7 100644 --- a/src/pkg/repository/repository.go +++ b/src/pkg/repository/repository.go @@ -515,7 +515,7 @@ func getBackupErrors( ssid := b.StreamStoreID if len(ssid) == 0 { - return nil, b, clues.New("no errors in backup").WithClues(ctx) + return nil, b, clues.New("missing streamstore id in backup").WithClues(ctx) } var (