Skip to content

Commit 3c46945

Browse files
knizhnikkelvich
authored andcommitted
Extend error message
1 parent a4a0c6e commit 3c46945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/multimaster/sockhub/sockhub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ void ShubLoop(Shub* shub)
380380
rc = ShubReadSocketEx(chan, &shub->in_buffer[pos + available], sizeof(ShubMessageHdr) - available, buffer_size - pos - available);
381381
if (rc < sizeof(ShubMessageHdr) - available) {
382382
char buf[1024];
383-
sprintf(buf, "Failed to read local socket rc=%d, min requested=%ld, max requested=%d, errno=%d", rc, sizeof(ShubMessageHdr) - available, buffer_size - pos - available, errno);
383+
sprintf(buf, "Failed to read local socket chan=%d, rc=%d, min requested=%ld, max requested=%d, errno=%d", chan, rc, sizeof(ShubMessageHdr) - available, buffer_size - pos - available, errno);
384384
shub->params->error_handler(buf, SHUB_RECOVERABLE_ERROR);
385385
//shub->params->error_handler("Failed to read local socket", SHUB_RECOVERABLE_ERROR);
386386
close_socket(shub, i);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy