Unverified Commit d1f4a730 authored by stonezdj(Daojun Zhang)'s avatar stonezdj(Daojun Zhang) Committed by GitHub
Browse files

Merge pull request #7423 from wy65701436/hide-501

Disable throw internal error to UI
parents a6af9e99 ba76550d
......@@ -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())
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