forked from TrueCloudLab/restic
testing: Add id to error message in panic
This commit is contained in:
parent
e73e3cb4ba
commit
7ec0543af3
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ func TestCreateSnapshot(t testing.TB, repo Repository, at time.Time, depth int,
|
||||||
func TestParseID(s string) ID {
|
func TestParseID(s string) ID {
|
||||||
id, err := ParseID(s)
|
id, err := ParseID(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(fmt.Sprintf("unable to parse string %q as ID: %v", s, err))
|
||||||
}
|
}
|
||||||
|
|
||||||
return id
|
return id
|
||||||
|
|
Loading…
Add table
Reference in a new issue