Skip to content

Commit 60438e4

Browse files
authored
ProtocolError instread of just Error
1 parent f9422b5 commit 60438e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clickhouse/client.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ bool Client::Impl::ReadBlock(InputStream& input, Block* block) {
485485

486486
if (ColumnRef col = CreateColumnByType(type, create_column_settings)) {
487487
if (num_rows && !col->Load(&input, num_rows)) {
488-
throw Error("can't load column '" + name + "' of type " + type);
488+
throw ProtocolError("can't load column '" + name + "' of type " + type);
489489
}
490490

491491
block->AppendColumn(name, col);

0 commit comments

Comments
 (0)