From 409e4936af17ee3f5c565b52c55b575daa64f5aa Mon Sep 17 00:00:00 2001 From: Juergen Hoetzel Date: Wed, 25 Aug 2021 15:46:21 +0200 Subject: [PATCH] Improve snapshot filter warning message Include the root-cause why the snapshot prefix is ignored. --- cmd/restic/find.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/restic/find.go b/cmd/restic/find.go index 70710e2cb..1297420f9 100644 --- a/cmd/restic/find.go +++ b/cmd/restic/find.go @@ -31,7 +31,7 @@ func FindFilteredSnapshots(ctx context.Context, repo *repository.Repository, hos } else { id, err = restic.FindSnapshot(ctx, repo, s) if err != nil { - Warnf("Ignoring %q, it is not a snapshot id\n", s) + Warnf("Ignoring %q: %v\n", s, err) continue } }