mirror of
https://github.com/golang/go
synced 2024-11-02 09:28:34 +00:00
image: add missing error check in test
Change-Id: Ia42a4a658e4207cc1f036f2faeac011e71edad77
GitHub-Last-Rev: b384f81799
GitHub-Pull-Request: golang/go#30012
Reviewed-on: https://go-review.googlesource.com/c/go/+/160436
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
0ac4ea79f7
commit
2500ac20c0
1 changed files with 4 additions and 0 deletions
|
@ -123,6 +123,10 @@ loop:
|
|||
continue
|
||||
}
|
||||
c, _, err := decodeConfig(it.filename)
|
||||
if err != nil {
|
||||
t.Errorf("%s: %v", it.filename, err)
|
||||
continue loop
|
||||
}
|
||||
if m.ColorModel() != c.ColorModel {
|
||||
t.Errorf("%s: color models differ", it.filename)
|
||||
continue loop
|
||||
|
|
Loading…
Reference in a new issue