mirror of https://github.com/citusdata/citus.git
Add a connection failure error code
parent
ebb8f902c8
commit
394732b6be
|
@ -244,7 +244,8 @@ ReportConnectionError(MultiConnection *connection, int elevel)
|
|||
char *nodeName = connection->hostname;
|
||||
int nodePort = connection->port;
|
||||
|
||||
ereport(elevel, (errmsg("connection error: %s:%d", nodeName, nodePort),
|
||||
ereport(elevel, (errcode(ERRCODE_CONNECTION_FAILURE),
|
||||
errmsg("connection error: %s:%d", nodeName, nodePort),
|
||||
errdetail("%s", pchomp(PQerrorMessage(connection->pgConn)))));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue