1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-15 06:44:31 +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

@@ -18,13 +18,13 @@ func ErrorHandler(request *types.APIContext, err error) {
}
data := toError(error)
request.WriteResponse(error.code.status, data)
request.WriteResponse(error.code.Status, data)
}
func toError(apiError *APIError) map[string]interface{} {
e := map[string]interface{}{
"type": "/meta/schemas/error",
"status": apiError.code.status,
"status": apiError.code.Status,
"code": apiError.code.code,
"message": apiError.message,
}