mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 01:57:20 +00:00
[Vendor] update go-swagger v0.21.0 -> v0.25.0 (#12670)
* Update go-swagger * vendor
This commit is contained in:
9
vendor/github.com/go-openapi/runtime/client_response.go
generated
vendored
9
vendor/github.com/go-openapi/runtime/client_response.go
generated
vendored
@ -17,6 +17,8 @@ package runtime
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// A ClientResponse represents a client response
|
||||
@ -59,5 +61,10 @@ type APIError struct {
|
||||
}
|
||||
|
||||
func (a *APIError) Error() string {
|
||||
return fmt.Sprintf("%s (status %d): %+v ", a.OperationName, a.Code, a.Response)
|
||||
resp, _ := json.Marshal(a.Response)
|
||||
return fmt.Sprintf("%s (status %d): %s", a.OperationName, a.Code, resp)
|
||||
}
|
||||
|
||||
func (a *APIError) String() string {
|
||||
return a.Error()
|
||||
}
|
||||
|
Reference in New Issue
Block a user