Fix: update repo

Signed-off-by: LiHui <andrewli@yunify.com>
This commit is contained in:
LiHui
2021-03-31 11:45:25 +08:00
parent 2ae3823a5e
commit 61a990c75e
4 changed files with 18 additions and 16 deletions

View File

@@ -218,7 +218,11 @@ func (h *openpitrixHandler) DescribeRepo(req *restful.Request, resp *restful.Res
if err != nil {
klog.Errorln(err)
handleOpenpitrixError(resp, err)
if apierrors.IsNotFound(err) {
api.HandleNotFound(resp, nil, err)
return
}
api.HandleInternalError(resp, nil, err)
return
}