Fix error with backup list --backup ID (backup created with an older corso version) (#3085)

<!-- PR description-->

---

#### Does this PR need a docs update or release note?

- [ ]  Yes, it's included
- [ ] 🕐 Yes, but in a later PR
- [ ]  No

#### Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [ ] 🤖 Supportability/Tests
- [ ] 💻 CI/Deployment
- [ ] 🧹 Tech Debt/Cleanup

#### Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #<issue>

#### Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [ ]  Unit test
- [ ] 💚 E2E
This commit is contained in:
Abhishek Pandey 2023-04-13 19:43:43 -07:00 committed by GitHub
parent 7bb5a9a2b1
commit c5d1ef19d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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 (