From 7ec0543af31f279e00f23aa862b7b822714c8fb2 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sun, 28 May 2017 09:43:28 +0200 Subject: [PATCH] testing: Add id to error message in panic --- src/restic/testing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/restic/testing.go b/src/restic/testing.go index 9df54e7b6..144f53bd1 100644 --- a/src/restic/testing.go +++ b/src/restic/testing.go @@ -205,7 +205,7 @@ func TestCreateSnapshot(t testing.TB, repo Repository, at time.Time, depth int, func TestParseID(s string) ID { id, err := ParseID(s) if err != nil { - panic(err) + panic(fmt.Sprintf("unable to parse string %q as ID: %v", s, err)) } return id