mirror of
https://github.com/docker/docs.git
synced 2026-03-29 07:18:51 +07:00
16 lines
206 B
Go
16 lines
206 B
Go
package errors
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type DockerError struct {
|
|
HTTPStatus int
|
|
Code int
|
|
Error error
|
|
}
|
|
|
|
func (de *DockerError) Error() string {
|
|
fmt.Sprintf("%d: %s", de.Code, de.Error.Error())
|
|
}
|