Skoda: replace obsolete Skoda api with Enyaq (#19127)
This commit is contained in:
parent
4c73f18270
commit
1891a58ce5
12 changed files with 16 additions and 533 deletions
|
|
@ -43,6 +43,10 @@ type StatusError struct {
|
|||
resp *http.Response
|
||||
}
|
||||
|
||||
func NewStatusError(resp *http.Response) *StatusError {
|
||||
return &StatusError{resp: resp}
|
||||
}
|
||||
|
||||
func (e *StatusError) Error() string {
|
||||
return fmt.Sprintf("unexpected status: %d (%s)", e.resp.StatusCode, http.StatusText(e.resp.StatusCode))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue