Skip to content

Commit 2500ac2

Browse files
leonklingelebradfitz
authored andcommitted
image: add missing error check in test
Change-Id: Ia42a4a658e4207cc1f036f2faeac011e71edad77 GitHub-Last-Rev: b384f81 GitHub-Pull-Request: #30012 Reviewed-on: https://go-review.googlesource.com/c/go/+/160436 Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 0ac4ea7 commit 2500ac2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/image/decode_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ loop:
123123
continue
124124
}
125125
c, _, err := decodeConfig(it.filename)
126+
if err != nil {
127+
t.Errorf("%s: %v", it.filename, err)
128+
continue loop
129+
}
126130
if m.ColorModel() != c.ColorModel {
127131
t.Errorf("%s: color models differ", it.filename)
128132
continue loop

0 commit comments

Comments
 (0)