diff --git a/pkg/cloudcommon/db/tablespec.go b/pkg/cloudcommon/db/tablespec.go index 6889315cc1..25b1e1b052 100644 --- a/pkg/cloudcommon/db/tablespec.go +++ b/pkg/cloudcommon/db/tablespec.go @@ -63,10 +63,10 @@ func (ts *sTableSpec) newInformerModel(dt interface{}) (*informer.ModelObject, e return nil, errors.Errorf("informer model is not IModel") } if obj.GetVirtualObject() == nil { - return nil, errors.Errorf("object %t %v virtual object is nil", obj, obj) + return nil, errors.Errorf("object %#v virtual object is nil", obj) } if obj.GetModelManager() == nil { - return nil, errors.Errorf("object %t %v model manager is nil", obj, obj) + return nil, errors.Errorf("object %#v model manager is nil", obj) } jointObj, isJoint := obj.(IJointModel) if isJoint {