Quote snapshot prefix in error string

This commit is contained in:
Juergen Hoetzel 2021-08-25 16:11:28 +02:00
parent 409e4936af
commit defe19fdf6

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