From 0979251a4ac33287f89326c87c877aa44d3ffe4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 27 Jun 2016 02:21:49 +0200 Subject: [PATCH] Replace log.Fatal with log.Panic Fixes #92 --- memmap.go | 2 +- util.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/memmap.go b/memmap.go index f577ac8..2e259b8 100644 --- a/memmap.go +++ b/memmap.go @@ -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 diff --git a/util.go b/util.go index 2fa8402..cec6f8f 100644 --- a/util.go +++ b/util.go @@ -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) } } }