All printed warnings should have some context

This commit is contained in:
Jakob Borg
2014-08-17 10:28:36 +02:00
parent d20df12168
commit 1a66461e07
4 changed files with 8 additions and 8 deletions

View File

@@ -96,7 +96,7 @@ func (v Simple) Archive(filePath string) error {
versions, err := filepath.Glob(filepath.Join(dir, file+"~*"))
if err != nil {
l.Warnln(err)
l.Warnln("globbing:", err)
return nil
}
@@ -108,7 +108,7 @@ func (v Simple) Archive(filePath string) error {
}
err = os.Remove(toRemove)
if err != nil {
l.Warnln(err)
l.Warnln("removing old version:", err)
}
}
}