fix(config): use IsNotExist to test missing file

Fixes #125 where a config file never gets created
This commit is contained in:
Brandon Philips 2013-08-17 13:39:51 -07:00
parent f1786b8083
commit bcc77db8a9

View File

@ -54,7 +54,7 @@ func readInfo(path string) *Info {
file, err := os.Open(path)
if err != nil {
if err == os.ErrNotExist {
if os.IsNotExist(err) {
return nil
}
fatal(err)