Skip to content

Commit

Permalink
chore(pkg/server): Better error message when validating replication o…
Browse files Browse the repository at this point in the history
…ptions

Signed-off-by: Bartłomiej Święcki <[email protected]>
  • Loading branch information
Bartłomiej Święcki committed Oct 12, 2022
1 parent 6395280 commit 50056da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/db_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ func (opts *dbOptions) Validate() error {

if !opts.SyncReplication && opts.SyncAcks > 0 {
return fmt.Errorf(
"%w: invalid replication options for master database '%s'. Sync acks is not expected",
"%w: invalid replication options for master database '%s'. SyncAcks should be set to 0",
ErrIllegalArguments, opts.Database)
}
}
Expand Down

0 comments on commit 50056da

Please sign in to comment.