[skip ci] Add comment for HandleCStatus (#9043)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/9048/head
bigsheeper 2021-10-01 23:43:21 +08:00 committed by GitHub
parent 5e78500519
commit 4323b5dc98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ func (protoCGo *ProtoCGo) destruct() {
protoCGo.blob = nil
}
// HandleCStatus deal with the error returned from CGO
func HandleCStatus(status *C.CStatus, extraInfo string) error {
if status.error_code == 0 {
return nil