Skip to content

Commit

Permalink
Merge pull request #37 from zerok/feature/verbose-initial-error
Browse files Browse the repository at this point in the history
Add verbose info message when launching without .wegorc
  • Loading branch information
schachmat committed May 22, 2015
2 parents 89e809a + fe0258b commit e0dce56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions we.go
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ func init() {
config.Imperial = false
err = configload()
if _, ok := err.(*os.PathError); ok {
log.Printf("No config file found. Creating %s ...", configpath)
if err := configsave(); err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit e0dce56

Please sign in to comment.