[skip ci] Fix golint issue for datacoord/util.go (#9992)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/10000/head
congqixia 2021-10-15 20:40:53 +08:00 committed by GitHub
parent 977e98d21b
commit 1e11a11c27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ func VerifyResponse(response interface{}, err error) error {
return nil
}
// FailResponse sets status to failed with reason
func FailResponse(status *commonpb.Status, reason string) {
status.ErrorCode = commonpb.ErrorCode_UnexpectedError
status.Reason = reason