Commit c6a2e574 authored by Clayton Coleman's avatar Clayton Coleman

Structure of BadRequest error should have Message set

parent a480794e
...@@ -151,11 +151,7 @@ func NewBadRequest(reason string) error { ...@@ -151,11 +151,7 @@ func NewBadRequest(reason string) error {
Status: api.StatusFailure, Status: api.StatusFailure,
Code: http.StatusBadRequest, Code: http.StatusBadRequest,
Reason: api.StatusReasonBadRequest, Reason: api.StatusReasonBadRequest,
Details: &api.StatusDetails{ Message: reason,
Causes: []api.StatusCause{
{Message: reason},
},
},
}} }}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment