Skip to content

Commit 7b16136

Browse files
committed
CDRIVER-696: Quote the host for clarity
1 parent 2bb3d5c commit 7b16136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mongoc/mongoc-topology-scanner.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ mongoc_topology_scanner_node_connect_tcp (mongoc_topology_scanner_node_t *node,
307307
bson_set_error (error,
308308
MONGOC_ERROR_STREAM,
309309
MONGOC_ERROR_STREAM_NAME_RESOLUTION,
310-
"Failed to resolve %s",
310+
"Failed to resolve '%s'",
311311
host->host);
312312
RETURN (NULL);
313313
}
@@ -339,7 +339,7 @@ mongoc_topology_scanner_node_connect_tcp (mongoc_topology_scanner_node_t *node,
339339
bson_set_error (error,
340340
MONGOC_ERROR_STREAM,
341341
MONGOC_ERROR_STREAM_CONNECT,
342-
"Failed to connect to target host: %s",
342+
"Failed to connect to target host: '%s'",
343343
host->host_and_port);
344344
freeaddrinfo (node->dns_results);
345345
node->dns_results = NULL;

0 commit comments

Comments
 (0)