Skip to content

Commit 504df1e

Browse files
authored
Merge pull request #258 from ClickHouse/feat/improve-prepare-error-message
feat: add column name to prepare error
2 parents f266694 + e048bc3 commit 504df1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: proto/block.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func (b Block) EncodeRawBlock(buf *Buffer, version int, input []InputColumn) err
169169
col.EncodeStart(buf, version)
170170
if v, ok := col.Data.(Preparable); ok {
171171
if err := v.Prepare(); err != nil {
172-
return errors.Wrap(err, "prepare")
172+
return errors.Wrapf(err, "prepare %q", col.Name)
173173
}
174174
}
175175
if col.Data.Rows() == 0 {

0 commit comments

Comments
 (0)