From 4cfecf12f8ce1a078383181f7f533aed8354a733 Mon Sep 17 00:00:00 2001 From: Gilbert Chen Date: Mon, 4 Jan 2021 10:17:11 -0500 Subject: [PATCH] Show the path in the error when a subdirectory can't be listed --- src/duplicacy_snapshot.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/duplicacy_snapshot.go b/src/duplicacy_snapshot.go index 9b4fef2a..07b46915 100644 --- a/src/duplicacy_snapshot.go +++ b/src/duplicacy_snapshot.go @@ -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 }