Skip to content

Commit

Permalink
Merge pull request #357 from ripienaar/restore_eh
Browse files Browse the repository at this point in the history
improve restore error handling
  • Loading branch information
ripienaar authored Feb 11, 2022
2 parents 4b1014a + 292db1a commit 501a222
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,9 +435,6 @@ func (m *Manager) RestoreSnapshotFromDirectory(ctx context.Context, stream strin
if err != nil {
return nil, nil, err
}
if IsErrorResponse(cresp) {
return nil, nil, fmt.Errorf("restore failed: %q", cresp.Data)
}

kind, finalr, err := api.ParseMessage(cresp.Data)
if err != nil {
Expand Down

0 comments on commit 501a222

Please sign in to comment.