Skip to content

Commit 50056da

Browse files
author
Bartłomiej Święcki
committed
chore(pkg/server): Better error message when validating replication options
Signed-off-by: Bartłomiej Święcki <[email protected]>
1 parent 6395280 commit 50056da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/server/db_options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ func (opts *dbOptions) Validate() error {
683683

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

0 commit comments

Comments
 (0)