From 50056da8a3eb16c3bf8f22fd191cc4080a8dad76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20=C5=9Awi=C4=99cki?= Date: Wed, 12 Oct 2022 14:24:20 +0200 Subject: [PATCH] chore(pkg/server): Better error message when validating replication options MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bartłomiej Święcki --- pkg/server/db_options.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/db_options.go b/pkg/server/db_options.go index eb0dd75c45..7771b97e78 100644 --- a/pkg/server/db_options.go +++ b/pkg/server/db_options.go @@ -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) } }