Revert "Update src/Storages/StorageS3.cpp

This reverts commit bbbfe1891bfdc868878cfc8d52c254babd4ca181.
This commit is contained in:
Vladimir Chebotarev 2021-07-29 13:45:01 +03:00
parent 067cc763cc
commit 0b75c66378

View File

@ -486,8 +486,9 @@ private:
/// Need to convert to UInt32 because UInt8 can't be passed to format due to "mixing character types is disallowed".
UInt32 invalid_char_byte = static_cast<UInt32>(static_cast<UInt8>(*i));
throw DB::Exception(ErrorCodes::CANNOT_PARSE_TEXT,
"Illegal character '\\x{0:02x}' in partition key",
invalid_char_byte);
"Illegal character '\\x{0:02x}' in partition key starting with '{}'.",
invalid_char_byte,
StringRef(str.data, i - str.data));
}
}
}