forked from TrueCloudLab/restic
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 {
|
} else {
|
||||||
id, err = restic.FindSnapshot(ctx, repo, s)
|
id, err = restic.FindSnapshot(ctx, repo, s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Warnf("Ignoring %q, it is not a snapshot id\n", s)
|
Warnf("Ignoring %q: %v\n", s, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
type MultipleIDMatchesError struct{ prefix string }
|
type MultipleIDMatchesError struct{ prefix string }
|
||||||
|
|
||||||
func (e *MultipleIDMatchesError) Error() 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
|
// A NoIDByPrefixError is returned by Find() when no ID for a given prefix
|
||||||
|
|
Loading…
Reference in a new issue