distribution/docs/v1/error.go

16 lines
189 B
Go
Raw Normal View History

package v1
import (
"fmt"
)
type Error struct {
StatusCode int
Status string
msg string
}
func (e Error) Error() string {
return fmt.Sprintf("%s: %s", e.Status, e.msg)
}