Merge pull request #48815 from ClickHouse/whitespaces-2

Fix double whitespace in exception message
This commit is contained in:
Alexey Milovidov 2023-04-16 07:57:16 +03:00 committed by GitHub
commit 55d79d4874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -114,9 +114,9 @@ bool RemoteQueryExecutorReadContext::checkTimeout(bool blocking)
catch (DB::Exception & e) catch (DB::Exception & e)
{ {
if (last_used_socket) if (last_used_socket)
e.addMessage(" while reading from socket ({})", last_used_socket->peerAddress().toString()); e.addMessage("while reading from socket ({})", last_used_socket->peerAddress().toString());
if (e.code() == ErrorCodes::SOCKET_TIMEOUT) if (e.code() == ErrorCodes::SOCKET_TIMEOUT)
e.addMessage(" (receive timeout {} ms)", receive_timeout_usec / 1000); e.addMessage("(receive timeout is {} ms)", receive_timeout_usec / 1000);
throw; throw;
} }
} }

View File

@ -45,7 +45,6 @@ private:
Arena partition_keys_arena; Arena partition_keys_arena;
SinkPtr getSinkForPartitionKey(StringRef partition_key); SinkPtr getSinkForPartitionKey(StringRef partition_key);
}; };
} }