From 09ebc54d20e3f4587549f237d66cc6b412729a00 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Wed, 17 Aug 2016 22:09:34 +0300 Subject: [PATCH] add error messages for last dir file --- app.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.go b/app.go index 080e9bc..778e554 100644 --- a/app.go +++ b/app.go @@ -38,7 +38,7 @@ func (app *App) handleInp() { if gLastDirPath != "" { f, err := os.Create(gLastDirPath) if err != nil { - log.Print(err) + log.Printf("opening last dir file: %s", err) } defer f.Close() @@ -46,7 +46,7 @@ func (app *App) handleInp() { _, err = f.WriteString(dir.path) if err != nil { - log.Print(err) + log.Printf("writing last dir file: %s", err) } }