mirror of
https://github.com/jackc/pgx.git
synced 2025-05-31 11:42:24 +00:00
Another error message improvement
This commit is contained in:
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…
x
Reference in New Issue
Block a user