mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-11 21:48:03 +02:00
Merge pull request #7423 from wy65701436/hide-501
Disable throw internal error to UI
This commit is contained in:
commit
d1f4a73004
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user