Skip to content

Commit

Permalink
Small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
SR-G committed Nov 16, 2017
1 parent e5bbd07 commit fad167f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/go/sol/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ func (conf *Configuration) InitDefaultConfiguration() {

func (conf *Configuration) Load(configurationFileName string) {
if _, err := os.Stat(configurationFileName); err == nil {
Info.Println("Configuration file found under [" + configurationFileName + "] now reading content")
Info.Println("Configuration file found under [" + configurationFileName + "], now reading content")
file, _ := os.Open(configurationFileName)
decoder := json.NewDecoder(file)
err := decoder.Decode(&conf)
if err != nil {
Error.Println("error while loading configuration :", err)
}
} else {
Info.Println("No external configuration file found under [" + configurationFileName + "] will use default values")
Info.Println("No external configuration file found under [" + configurationFileName + "], will use default values")
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/go/sol/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type version struct {
}

// Version string
var Version = version{"sleep-on-lan", 1, 0, 0, "SNAPSHOT", ""}
var Version = version{"sleep-on-lan", 1, 0, 2, "SNAPSHOT", ""}

// Build string
var Build string
Expand Down

0 comments on commit fad167f

Please sign in to comment.