Log goldenPath for golden not found errors

This commit is contained in:
David Dworken 2023-02-13 20:20:45 -08:00
parent f12cc8cdff
commit a4ae3f83ad
No known key found for this signature in database

View File

@ -347,7 +347,7 @@ func CompareGoldens(t *testing.T, out, goldenName string) {
expected, err := os.ReadFile(goldenPath)
if err != nil {
if os.IsNotExist(err) {
expected = []byte("ERR_FILE_NOT_FOUND")
expected = []byte("ERR_FILE_NOT_FOUND:" + goldenPath)
} else {
Check(t, err)
}