Replace log.Fatal with log.Panic

Fixes #92
This commit is contained in:
Bjørn Erik Pedersen 2016-06-27 02:21:49 +02:00
parent 1a8ecf8b9d
commit 0979251a4a
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ func (m *MemMapFs) unRegisterWithParent(fileName string) error {
}
parent := m.findParent(f)
if parent == nil {
log.Fatal("parent of ", f.Name(), " is nil")
log.Panic("parent of ", f.Name(), " is nil")
}
mem.RemoveFromMemDir(parent, f)
return nil

View File

@ -46,7 +46,7 @@ func WriteReader(fs Fs, path string, r io.Reader) (err error) {
err = fs.MkdirAll(ospath, 0777) // rwx, rw, r
if err != nil {
if err != os.ErrExist {
log.Fatalln(err)
log.Panicln(err)
}
}
}