Skip to content

Commit

Permalink
fix error for upload-failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Argelbargel committed Sep 19, 2023
1 parent 13204d5 commit 675b4f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/vault_raft_snapshot_agent/snapshotter.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (s *Snapshotter) uploadSnapshot(ctx context.Context, snapshot io.Reader, ti
for _, uploader := range s.uploaders {
err := uploader.Upload(ctx, snapshot, s.config.NamePrefix, timestamp, s.config.NameSuffix, s.config.Retain)
if err != nil {
errs = multierr.Append(errs, fmt.Errorf("unable to upload snapshot: %s", err))
errs = multierr.Append(errs, fmt.Errorf("unable to upload snapshot to %s: %s", uploader.Destination(), err))
} else {
log.Printf("Successfully uploaded snapshot to %s\n", uploader.Destination())
}
Expand Down

0 comments on commit 675b4f1

Please sign in to comment.