Browse Source

Merge pull request #126 from philips/fix-missing-info-file

fix(config): use IsNotExist to test missing file
Brandon Philips 12 years ago
parent
commit
ef4aef950e
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)