Simplify loading config and use config loader with version check. (#1939)

This commit is contained in:
Harshavardhana
2017-01-01 13:02:27 -08:00
committed by GitHub
parent 8c65985cd0
commit ee7f4e1d52
2 changed files with 16 additions and 6 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ import (
// Check if version of the config is valid
func validateConfigVersion(config *configV8) (bool, string) {
if config.Version != globalMCConfigVersion {
return false, fmt.Sprintf("Config version %s does not match GlobalMCConfiguration %s.\n",
return false, fmt.Sprintf("Config version '%s' does not match mc config version '%s', please update your binary.\n",
config.Version, globalMCConfigVersion)
}
return true, ""