Skip to content

Commit

Permalink
Merge pull request #654 from candlerb/candlerb/snapshot-counts
Browse files Browse the repository at this point in the history
Show the count values in snapshot count mismatch error
  • Loading branch information
stgraber authored Mar 24, 2024
2 parents 6857723 + 0dce523 commit 42d5e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/storage/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -6339,7 +6339,7 @@ func (b *backend) CheckInstanceBackupFileSnapshots(backupConf *backupConfig.Conf

if len(backupConf.Snapshots) != len(driverSnapshots) {
if !deleteMissing {
return nil, fmt.Errorf("Snapshot count in backup config and storage device are different: %w", ErrBackupSnapshotsMismatch)
return nil, fmt.Errorf("Snapshot count in backup config (%d) and storage device (%d) are different: %w", len(backupConf.Snapshots), len(driverSnapshots), ErrBackupSnapshotsMismatch)
}
}

Expand Down

0 comments on commit 42d5e2e

Please sign in to comment.