From bcc77db8a93eb5a9f31bcb82d2968128203eeb09 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Sat, 17 Aug 2013 13:39:51 -0700 Subject: [PATCH] fix(config): use IsNotExist to test missing file Fixes #125 where a config file never gets created --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 2e28b0b43..9580bcaf3 100644 --- a/config.go +++ b/config.go @@ -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)