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:
parent
7bb5a9a2b1
commit
c5d1ef19d2
@ -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)
|
||||
|
||||
@ -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 (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user