mirror of https://github.com/jackc/pgx.git
Another error message improvement
parent
28ea2cd190
commit
727fc19cb7
|
@ -1416,7 +1416,7 @@ func (ci *ConnInfo) Encode(oid uint32, formatCode int16, value interface{}, buf
|
|||
|
||||
plan := ci.PlanEncode(oid, formatCode, value)
|
||||
if plan == nil {
|
||||
return nil, fmt.Errorf("unable to encode %v", value)
|
||||
return nil, fmt.Errorf("unable to encode %#v into OID %d", value, oid)
|
||||
}
|
||||
return plan.Encode(value, buf)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue