parse_test.go: still display file name in case of error

This commit is contained in:
Adrien Delorme 2019-02-20 12:54:57 +01:00
parent c12e9eea3a
commit 944c00900e
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ func TestParse(t *testing.T) {
tpl.RawContents = nil
}
if diff := cmp.Diff(tpl, tc.Result); diff != "" {
t.Fatalf("[%d]bad: %v", i, diff)
t.Fatalf("[%d]bad: %s\n%v", i, tc.File, diff)
}
}
}