dbms/TSKVRowInputStream: more logging [#METR-19528].

This commit is contained in:
Evgeniy Gatov 2016-03-08 20:43:00 +03:00
parent 4e2a760474
commit 44c9de8873

View File

@ -141,7 +141,7 @@ bool TSKVRowInputStream::read(Block & block)
if (istr.eof()) if (istr.eof())
{ {
throw Exception("Unexpected end of stream after field in TSKV format", ErrorCodes::CANNOT_READ_ALL_DATA); throw Exception("Unexpected end of stream after field in TSKV format: " + name_ref.toString(), ErrorCodes::CANNOT_READ_ALL_DATA);
} }
else if (*istr.position() == '\t') else if (*istr.position() == '\t')
{ {
@ -154,7 +154,7 @@ bool TSKVRowInputStream::read(Block & block)
break; break;
} }
else else
throw Exception("Found garbage after field in TSKV format", ErrorCodes::INCORRECT_DATA); throw Exception("Found garbage after field in TSKV format: " + name_ref.toString(), ErrorCodes::INCORRECT_DATA);
} }
} }