Skip to content

Commit

Permalink
Tell user when config lives
Browse files Browse the repository at this point in the history
  • Loading branch information
mikegehard committed Aug 27, 2013
1 parent 3b5d096 commit 51369e8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/exercism/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package exercism

import (
"encoding/json"
"fmt"
"io/ioutil"
)

Expand Down Expand Up @@ -30,7 +31,12 @@ func ConfigToFile(dir string, c Config) (err error) {
return
}

err = ioutil.WriteFile(configFilename(dir), bytes, 0644)
filename := configFilename(dir)
err = ioutil.WriteFile(filename, bytes, 0644)
if err != nil {
return
}
fmt.Printf("Your credentials have been written to %s\n", filename)
return
}

Expand Down

0 comments on commit 51369e8

Please sign in to comment.