wrap error

pull/1579/head
Simon Paredes 2023-04-10 19:08:28 -04:00 committed by Jack Christensen
parent 84eb2e460a
commit 2cf1541bb9
1 changed files with 1 additions and 1 deletions

View File

@ -2050,7 +2050,7 @@ func newEncodeError(value any, m *Map, oid uint32, formatCode int16, err error)
dataTypeName = "unknown type"
}
return fmt.Errorf("unable to encode %#v into %s format for %s (OID %d): %s", value, format, dataTypeName, oid, err)
return fmt.Errorf("unable to encode %#v into %s format for %s (OID %d): %w", value, format, dataTypeName, oid, err)
}
// Encode appends the encoded bytes of value to buf. If value is the SQL value NULL then append nothing and return