Commit ba76550d authored by wang yan's avatar wang yan
Browse files

Disable throw internal error to UI


Signed-off-by: default avatarwang yan <wangyan@vmware.com>
parent a6af9e99
......@@ -223,7 +223,8 @@ func (b *BaseAPI) SendBadRequestError(err error) {
// SendInternalServerError sends internal server error to the client.
func (b *BaseAPI) SendInternalServerError(err error) {
b.RenderFormattedError(http.StatusInternalServerError, err.Error())
log.Error(err.Error())
b.RenderFormattedError(http.StatusInternalServerError, http.StatusText(http.StatusInternalServerError))
}
// SendForbiddenError sends forbidden error to the client.
......
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