Wrap error
This commit is contained in:
parent
31b5eb597d
commit
0287024e85
|
@ -560,7 +560,7 @@ loop:
|
||||||
var status int
|
var status int
|
||||||
status, err = strconv.Atoi(sr.header.Get(":status"))
|
status, err = strconv.Atoi(sr.header.Get(":status"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return res, fmt.Errorf("Error parsing status code: %v", err)
|
return res, fmt.Errorf("Error parsing status code: %w", err)
|
||||||
}
|
}
|
||||||
sr.status = status
|
sr.status = status
|
||||||
if f.StreamEnded() {
|
if f.StreamEnded() {
|
||||||
|
|
Loading…
Reference in New Issue