Fix access log panicking for nil response (#21149)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/21161/head
congqixia 2022-12-12 17:23:22 +08:00 committed by GitHub
parent 67bc341015
commit b0afdb2180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ func getErrCode(resp interface{}) (int, bool) {
}
status := baseResp.GetStatus()
return int(status.ErrorCode), true
return int(status.GetErrorCode()), true
}
func getGrpcStatus(err error) string {