lib/scanner, lib/model: File -> item when logging error (#5664)
This commit is contained in:
parent
86e72d9973
commit
926e9228ed
@ -1747,7 +1747,7 @@ func (f *sendReceiveFolder) newPullError(path string, err error) {
|
|||||||
return
|
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.
|
// Establish context to differentiate from errors while scanning.
|
||||||
// Use "syncing" as opposed to "pulling" as the latter might be used
|
// Use "syncing" as opposed to "pulling" as the latter might be used
|
||||||
|
|||||||
@ -530,7 +530,7 @@ func (w *walker) handleError(ctx context.Context, context, path string, err erro
|
|||||||
if fs.IsNotExist(err) {
|
if fs.IsNotExist(err) {
|
||||||
return
|
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 {
|
select {
|
||||||
case finishedChan <- ScanResult{
|
case finishedChan <- ScanResult{
|
||||||
Err: fmt.Errorf("%s: %s", context, err.Error()),
|
Err: fmt.Errorf("%s: %s", context, err.Error()),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user