提交 2c1fdd35 编写于 作者: L lihaowei

squash err handle

Signed-off-by: Nlihaowei <haoweili35@gmail.com>
上级 98bcc70b
......@@ -922,7 +922,7 @@ func handleOpenpitrixError(resp *restful.Response, err error) {
api.HandleNotFound(resp, nil, err)
return
}
if status.Code(err) == codes.InvalidArgument {
if status.Code(err) == codes.InvalidArgument || status.Code(err) == codes.FailedPrecondition {
klog.V(4).Infoln(err)
api.HandleBadRequest(resp, nil, err)
return
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册