mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-29 01:33:10 -06:00
More useful error message when the config version does not match
This commit is contained in:
parent
91e7a82e61
commit
abbbbbb2b4
|
|
@ -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