1
0
mirror of https://gitcode.com/gitea/gitea.git synced 2025-07-03 11:16:56 +08:00

[Vendor] update go-swagger v0.21.0 -> v0.25.0 ()

* Update go-swagger

* vendor
This commit is contained in:
6543
2020-09-01 16:01:23 +02:00
committed by GitHub
parent 66843f2237
commit 3270e7a443
350 changed files with 26353 additions and 5552 deletions
go.modgo.sum
vendor
cloud.google.com/go/compute/metadata
github.com
asaskevich/govalidator
fsnotify/fsnotify
go-openapi
go-swagger/go-swagger
golang/protobuf/proto
kr/pretty
mailru/easyjson
mitchellh/mapstructure
pelletier/go-toml
spf13
stretchr/testify
subosito/gotenv
go.mongodb.org/mongo-driver
google.golang.org
gopkg.in/yaml.v3
modules.txt

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