1
0
mirror of https://github.com/gilbertchen/duplicacy synced 2025-12-06 00:03:38 +00:00

Show the path in the error when a subdirectory can't be listed

This commit is contained in:
Gilbert Chen
2021-01-04 10:17:11 -05:00
parent 4104c2f934
commit 4cfecf12f8

View File

@@ -95,7 +95,7 @@ func CreateSnapshotFromDirectory(id string, top string, nobackupFile string, fil
LOG_ERROR("LIST_FAILURE", "Failed to list the repository root: %v", err)
return nil, nil, nil, err
}
LOG_WARN("LIST_FAILURE", "Failed to list subdirectory: %v", err)
LOG_WARN("LIST_FAILURE", "Failed to list subdirectory %s: %v", directory.Path, err)
skippedDirectories = append(skippedDirectories, directory.Path)
continue
}