Skip to content

Commit

Permalink
cloudcommon: tablespec: informer: log obj type
Browse files Browse the repository at this point in the history
  • Loading branch information
yousong committed Jun 21, 2020
1 parent c991cdc commit 2f79c99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cloudcommon/db/tablespec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 %v virtual object is nil", obj)
return nil, errors.Errorf("object %t %v virtual object is nil", obj, obj)
}
if obj.GetModelManager() == nil {
return nil, errors.Errorf("object %v model manager is nil", obj)
return nil, errors.Errorf("object %t %v model manager is nil", obj, obj)
}
jointObj, isJoint := obj.(IJointModel)
if isJoint {
Expand Down

0 comments on commit 2f79c99

Please sign in to comment.