mirror of
https://github.com/rancher/norman.git
synced 2025-09-09 02:59:19 +00:00
status => Status
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user