Update old config file strings

This commit is contained in:
Adrian Gallagher
2017-03-16 14:51:15 +11:00
parent 50f660867d
commit b6a53cf41c
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
config.json
config.dat
node_modules
lib

View File

@@ -1,3 +1,3 @@
FROM golang:onbuild
COPY config_example.json config.json
COPY config_example.dat config.dat

View File

@@ -28,7 +28,7 @@ var (
ErrExchangeNotFound = "Exchange %s: Not found."
ErrNoEnabledExchanges = "No Exchanges enabled."
ErrCryptocurrenciesEmpty = "Cryptocurrencies variable is empty."
ErrFailureOpeningConfig = "Fatal error opening config.json file. Error: %s"
ErrFailureOpeningConfig = "Fatal error opening %s file. Error: %s"
ErrCheckingConfigValues = "Fatal error checking config values. Error: %s"
ErrSavingConfigBytesMismatch = "Config file %q bytes comparison doesn't match, read %s expected %s."
WarningSMSGlobalDefaultOrEmptyValues = "WARNING -- SMS Support disabled due to default or empty Username/Password values."
@@ -275,7 +275,7 @@ func SaveConfig() error {
func LoadConfig() error {
err := ReadConfig()
if err != nil {
return fmt.Errorf(ErrFailureOpeningConfig, err)
return fmt.Errorf(ErrFailureOpeningConfig, CONFIG_FILE, err)
}
err = CheckExchangeConfigValues()