add error messages for last dir file

This commit is contained in:
Gokcehan 2016-08-17 22:09:34 +03:00
parent 0c07daf2ef
commit 09ebc54d20

4
app.go
View File

@ -38,7 +38,7 @@ func (app *App) handleInp() {
if gLastDirPath != "" { if gLastDirPath != "" {
f, err := os.Create(gLastDirPath) f, err := os.Create(gLastDirPath)
if err != nil { if err != nil {
log.Print(err) log.Printf("opening last dir file: %s", err)
} }
defer f.Close() defer f.Close()
@ -46,7 +46,7 @@ func (app *App) handleInp() {
_, err = f.WriteString(dir.path) _, err = f.WriteString(dir.path)
if err != nil { if err != nil {
log.Print(err) log.Printf("writing last dir file: %s", err)
} }
} }