mirror of https://github.com/citusdata/citus.git
Fix ReportConnectionError for empty error messages
parent
8f560b6031
commit
06affc7467
|
@ -256,7 +256,7 @@ ReportConnectionError(MultiConnection *connection, int elevel)
|
|||
messageDetail = pchomp(PQerrorMessage(pgConn));
|
||||
}
|
||||
|
||||
if (messageDetail)
|
||||
if (messageDetail && messageDetail[0] != '\0')
|
||||
{
|
||||
ereport(elevel, (errcode(ERRCODE_CONNECTION_FAILURE),
|
||||
errmsg("connection to the remote node %s:%d failed with the "
|
||||
|
|
Loading…
Reference in New Issue