mirror of https://github.com/milvus-io/milvus.git
[skip ci] Fix golint issue for datacoord/util.go (#9992)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/10000/head
parent
977e98d21b
commit
1e11a11c27
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue