Print invalid version in exception message

This commit is contained in:
Pavel Kruglov 2024-10-10 11:24:47 +08:00 committed by GitHub
parent c4cc4cca91
commit df77c6f120
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,7 +89,7 @@ SerializationDynamic::DynamicSerializationVersion::DynamicSerializationVersion(U
void SerializationDynamic::DynamicSerializationVersion::checkVersion(UInt64 version)
{
if (version != V1 && version != V2)
throw Exception(ErrorCodes::INCORRECT_DATA, "Invalid version for Dynamic structure serialization.");
throw Exception(ErrorCodes::INCORRECT_DATA, "Invalid version for Dynamic structure serialization: {}", version);
}
void SerializationDynamic::serializeBinaryBulkStatePrefix(