More verbose error message when conversion function cannot parse value from string [#METR-22408].

This commit is contained in:
Alexey Milovidov 2016-08-17 10:51:39 +03:00
parent 09563dc4da
commit e387d94275

View File

@ -22,7 +22,7 @@ void throwExceptionForIncompletelyParsedValue(
else
message_buf << " at begin of string";
if (to_type.isNumeric())
if (to_type.behavesAsNumber())
message_buf << ". Note: there are to" << to_type.getName() << "OrZero function, which returns zero instead of throwing exception.";
}