Skip to content

Commit 9fce0b1

Browse files
committed
fix
1 parent 146b174 commit 9fce0b1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

routers/api/packages/container/container.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ func apiError(ctx *context.Context, status int, err error) {
9999
// https://github.com/opencontainers/distribution-spec/blob/main/spec.md#error-codes
100100
func apiErrorDefined(ctx *context.Context, err *namedError) {
101101
type ContainerError struct {
102-
Code string `json:"code"`
103-
Message string `json:"message"`
104-
Detail interface{} `json:"detail,omitempty"`
102+
Code string `json:"code"`
103+
Message string `json:"message"`
104+
Detail any `json:"detail,omitempty"`
105105
}
106106

107107
type ContainerErrors struct {

routers/api/packages/container/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type namedError struct {
3232
Code string
3333
StatusCode int
3434
Message string
35-
Detail interface{}
35+
Detail any
3636
}
3737

3838
func (e *namedError) Error() string {

0 commit comments

Comments
 (0)