mirror of
https://github.com/restic/restic.git
synced 2024-12-23 08:16:36 +00:00
Merge pull request #3496 from juergenhoetzel/imporove-snapshot-filter-warning-message
Improve snapshot filter warning message
This commit is contained in:
commit
b45d88e124
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue