add error messages for last dir file
This commit is contained in:
parent
0c07daf2ef
commit
09ebc54d20
4
app.go
4
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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user