Browse Source

fix(config): use IsNotExist to test missing file

Fixes #125 where a config file never gets created
Brandon Philips 12 years ago
parent
commit
bcc77db8a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      config.go

+ 1 - 1
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)