mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-26 15:08:28 +00:00
More useful error message when the config version does not match
This commit is contained in:
parent
91e7a82e61
commit
abbbbbb2b4
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue