Merge pull request #3496 from juergenhoetzel/imporove-snapshot-filter-warning-message

Improve snapshot filter warning message
This commit is contained in:
MichaelEischer authored and GitHub committed 2021-09-03 23:42:27 +02:00
commit b45d88e124
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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
}
}
+1 -1
View File
@@ -10,7 +10,7 @@ import (
type MultipleIDMatchesError struct{ prefix string }
func (e *MultipleIDMatchesError) Error() string {
return fmt.Sprintf("multiple IDs with prefix %s found", e.prefix)
return fmt.Sprintf("multiple IDs with prefix %q found", e.prefix)
}
// A NoIDByPrefixError is returned by Find() when no ID for a given prefix