Skip to content

Commit

Permalink
error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
korotkov-aerospike committed Jan 28, 2025
1 parent 2cf12fb commit 4f531b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/dto/backup_routine.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type BackupRoutine struct {
// Validate validates the backup routine configuration.
func (r *BackupRoutine) Validate() error {
if r.BackupPolicy == "" {
return errValidationEmptyField("backup policy")
return errValidationEmptyField("backup-policy")
}
if r.SourceCluster == "" {
return errValidationEmptyField("source-cluster")
Expand Down
2 changes: 1 addition & 1 deletion pkg/dto/validate_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func errValidationMutuallyExclusive(field1, field2 string) error {
}

func errValidationEmptyField(field string) error {
return fmt.Errorf("%w: %q cannot be empty", errEmpty, field)
return fmt.Errorf("%w: %q required", errEmpty, field)
}

func errValidationNotFound(field, value string) error {
Expand Down

0 comments on commit 4f531b6

Please sign in to comment.