Wrap error

This commit is contained in:
Tatsuhiro Tsujikawa 2022-05-24 18:53:08 +09:00
parent 31b5eb597d
commit 0287024e85
1 changed files with 1 additions and 1 deletions

View File

@ -560,7 +560,7 @@ loop:
var status int
status, err = strconv.Atoi(sr.header.Get(":status"))
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
if f.StreamEnded() {