Skoda: replace obsolete Skoda api with Enyaq (#19127)

This commit is contained in:
andig 2025-02-24 08:50:18 +01:00 • committed by GitHub
parent 4c73f18270
commit 1891a58ce5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 16 additions and 533 deletions

View file

@ -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))
}