MCPcopy
hub / github.com/grafana/k6 / Error

Struct Error

api/v1/errors.go:11–15  ·  view source on GitHub ↗

Error is an api error

Source from the content-addressed store, hash-verified

9
10// Error is an api error
11type Error struct {
12 Status string `json:"status,omitempty"`
13 Title string `json:"title,omitempty"`
14 Detail string `json:"detail,omitempty"`
15}
16
17func (e Error) Error() string {
18 return fmt.Sprintf("%s: %s", e.Title, e.Detail)

Callers 1

decodeFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected