Commit 4c905101 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(main): Print the retry value if the final write fails.

parent 4c3de3ab
......@@ -585,8 +585,9 @@ main(int argc,
}
/* We expect EPIPE or ECONNRESET. */
else if (errno != EPIPE && errno != ECONNRESET)
fprintf(stderr, "final write: %s\n", strerror(errno));
if (errno != EPIPE && errno != ECONNRESET)
fprintf(stderr, "final write (retry==%d): %s\n",
retry, strerror(errno));
}
if (rv == 0)
fprintf(stderr, "final write returned 0\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment