Skip to content

Commit

Permalink
Update old config file strings
Browse files Browse the repository at this point in the history
  • Loading branch information
thrasher- committed Mar 16, 2017
1 parent 50f6608 commit b6a53cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
config.json
config.dat
node_modules
lib
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM golang:onbuild
COPY config_example.json config.json
COPY config_example.dat config.dat

4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit b6a53cf

Please sign in to comment.