diff --git a/server/embed/config.go b/server/embed/config.go index 2d1edf05c822..4fa177b46a62 100644 --- a/server/embed/config.go +++ b/server/embed/config.go @@ -1009,7 +1009,7 @@ func (cfg *Config) Validate() error { // TODO: delete in v3.7 for oldFlag, newFlag := range experimentalNonBoolFlagMigrationMap { if cfg.FlagsExplicitlySet[oldFlag] && cfg.FlagsExplicitlySet[newFlag] { - return fmt.Errorf("cannot set %s and %s at the same time in the config file, please use %s only", oldFlag, newFlag, newFlag) + return fmt.Errorf("cannot set --%s and --%s at the same time, please use --%s only", oldFlag, newFlag, newFlag) } }