From abbbbbb2b445a836cec8866ab09e2620baf397fe Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 5 Jan 2022 15:21:09 +0000 Subject: [PATCH] More useful error message when the config version does not match --- setup/config/config.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/config/config.go b/setup/config/config.go index 8d121599..01205a50 100644 --- a/setup/config/config.go +++ b/setup/config/config.go @@ -421,7 +421,11 @@ func (config *Dendrite) check(_ bool) error { // monolithic if config.Version != Version { configErrs.Add(fmt.Sprintf( - "unknown config version %q, expected %q", config.Version, Version, + "config version is %q, expected %q - this means that the format of the configuration "+ + "file has changed in some significant way, so please revisit the sample config "+ + "and ensure you are not missing any important options that may have been added "+ + "or changed recently!", + config.Version, Version, )) return configErrs }