Archived
All printed warnings should have some context
This commit is contained in:
1 parent
d20df12168
commit
1a66461e07
4 files changed
+8
-8
No files matched your search
+2
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user