mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 15:17:25 +00:00
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
|
||||
}
|
||||
|
||||
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
|
||||
|
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user