enhance: error msg (#37901)

#37900

Signed-off-by: lixinguo <xinguo.li@zilliz.com>
Co-authored-by: lixinguo <xinguo.li@zilliz.com>
This commit is contained in:
smellthemoon 2024-11-22 18:40:32 +08:00 committed by GitHub
parent efce709152
commit df08d91c0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1531,7 +1531,7 @@ func convertDefaultValue(value interface{}, dataType schemapb.DataType) (*schema
}
return data, nil
default:
return nil, merr.WrapErrParameterInvalidMsg(fmt.Sprintf("Unexpected default value type: %d", dataType))
return nil, merr.WrapErrParameterInvalidMsg(fmt.Sprintf("Unexpected default value type: %s", dataType.String()))
}
}