mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-21 08:07:59 +01:00
Disable throw internal error to UI
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
a6af9e9972
commit
ba76550d14
@ -223,7 +223,8 @@ func (b *BaseAPI) SendBadRequestError(err error) {
|
|||||||
|
|
||||||
// SendInternalServerError sends internal server error to the client.
|
// SendInternalServerError sends internal server error to the client.
|
||||||
func (b *BaseAPI) SendInternalServerError(err error) {
|
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.
|
// SendForbiddenError sends forbidden error to the client.
|
||||||
|
Loading…
Reference in New Issue
Block a user