1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-09 02:59:19 +00:00

status => Status

This commit is contained in:
Darren Shepherd
2018-01-19 21:29:07 -07:00
parent 8982c1cc59
commit dfade4fcef
2 changed files with 5 additions and 5 deletions

View File

@@ -32,11 +32,11 @@ var (
type ErrorCode struct {
code string
status int
Status int
}
func (e ErrorCode) String() string {
return fmt.Sprintf("%s %d", e.code, e.status)
return fmt.Sprintf("%s %d", e.code, e.Status)
}
type APIError struct {
@@ -49,7 +49,7 @@ type APIError struct {
func NewAPIErrorLong(status int, code, message string) error {
return NewAPIError(ErrorCode{
code: code,
status: status,
Status: status,
}, message)
}