2
0

Better error messages

This commit is contained in:
Jack Christensen
2022-02-05 13:05:23 -06:00
parent 6ebf54b62b
commit 28ea2cd190
2 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ func (c *ArrayCodec) decodeBinary(ci *ConnInfo, arrayOID uint32, src []byte, arr
}
err = elementScanPlan.Scan(elemSrc, elem)
if err != nil {
return err
return fmt.Errorf("failed to scan array element %d: %w", i, err)
}
}