2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-02 11:46:36 +00:00

testing: Add id to error message in panic

This commit is contained in:
Alexander Neumann 2017-05-28 09:43:28 +02:00
parent e73e3cb4ba
commit 7ec0543af3

View File

@ -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