Skip to content

Commit

Permalink
chore: remove error prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
yngfoxx committed Nov 5, 2022
1 parent 1472e3f commit dc811d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (header *RequestHeader) FiberFetch(url string) *Respnse {
}

if code >= 400 && body != nil {
return &Respnse{Status: code, Error: fmt.Errorf("error: %s", string(body))}
return &Respnse{Status: code, Error: fmt.Errorf(string(body))}
}

return &Respnse{Status: code, Data: body}
Expand Down

0 comments on commit dc811d5

Please sign in to comment.