lib/scanner, lib/model: File -> item when logging error (#5664)

This commit is contained in:
Simon Frei authored and Audrius Butkevicius committed 2019-04-21 16:19:59 +01:00
1 parent 86e72d9973
commit 926e9228ed
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1747,7 +1747,7 @@ func (f *sendReceiveFolder) newPullError(path string, err error) {
return
}
l.Infof("Puller (folder %s, file %q): %v", f.Description(), path, err)
l.Infof("Puller (folder %s, item %q): %v", f.Description(), path, err)
// Establish context to differentiate from errors while scanning.
// Use "syncing" as opposed to "pulling" as the latter might be used
+1 -1
View File
@@ -530,7 +530,7 @@ func (w *walker) handleError(ctx context.Context, context, path string, err erro
if fs.IsNotExist(err) {
return
}
l.Infof("Scanner (folder %s, file %q): %s: %v", w.Folder, path, context, err)
l.Infof("Scanner (folder %s, item %q): %s: %v", w.Folder, path, context, err)
select {
case finishedChan <- ScanResult{
Err: fmt.Errorf("%s: %s", context, err.Error()),