Skip to content

Commit

Permalink
modify message for interface not found
Browse files Browse the repository at this point in the history
  • Loading branch information
junqiang.zhang committed May 15, 2022
1 parent 35693c8 commit c89620c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdi.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ func (gdi *GDIPool) getByInterface(i reflect.Type) (value reflect.Value, err err
msg := fmt.Sprintf("there is one more object impliment %v interface [%v].", i.Name(), strings.Join(msgs, ","))
return reflect.Value{}, fmt.Errorf(msg)
}
return reflect.Value{}, fmt.Errorf("type:%v not found", i.Name())
return reflect.Value{}, fmt.Errorf("interface type:%v not found", i.Name())
}

func (gdi *GDIPool) getByName(name string) (result reflect.Value, ok bool) {
Expand Down

0 comments on commit c89620c

Please sign in to comment.