From defe19fdf637321569d7ccb3cfd67ba230565db2 Mon Sep 17 00:00:00 2001 From: Juergen Hoetzel Date: Wed, 25 Aug 2021 16:11:28 +0200 Subject: [PATCH] Quote snapshot prefix in error string --- internal/restic/backend_find.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/restic/backend_find.go b/internal/restic/backend_find.go index 631c7088a..b85cc9199 100644 --- a/internal/restic/backend_find.go +++ b/internal/restic/backend_find.go @@ -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