handle readInfo error

This commit is contained in:
Xiang Li 2013-08-14 10:52:11 -07:00 committed by Brandon Philips
parent 9240258dc9
commit c7e7e13aa4

View File

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