summaryrefslogtreecommitdiff
path: root/src/plugins/xfer
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-12-13 18:24:46 +0100
committerSébastien Helleu <flashcode@flashtux.org>2016-12-13 18:24:46 +0100
commit6c1815d3d15c7e9f376103396b9809900821cca5 (patch)
tree0e687ef148ef94d0b673646a06654995cb7b678c /src/plugins/xfer
parent6da99d8749a0bde24ba6d9b26c89076cac9127f2 (diff)
downloadweechat-6c1815d3d15c7e9f376103396b9809900821cca5.zip
core, xfer: display more information on fork errors (issue #573)
Diffstat (limited to 'src/plugins/xfer')
-rw-r--r--src/plugins/xfer/xfer-network.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/plugins/xfer/xfer-network.c b/src/plugins/xfer/xfer-network.c
index a6871376d..995514b9e 100644
--- a/src/plugins/xfer/xfer-network.c
+++ b/src/plugins/xfer/xfer-network.c
@@ -228,8 +228,10 @@ xfer_network_send_file_fork (struct t_xfer *xfer)
{
case -1: /* fork failed */
weechat_printf (NULL,
- _("%s%s: unable to fork"),
- weechat_prefix ("error"), XFER_PLUGIN_NAME);
+ _("%s%s: unable to fork (%s)"),
+ weechat_prefix ("error"),
+ XFER_PLUGIN_NAME,
+ strerror (errno));
xfer_close (xfer, XFER_STATUS_FAILED);
xfer_buffer_refresh (WEECHAT_HOTLIST_MESSAGE);
return;
@@ -299,8 +301,10 @@ xfer_network_recv_file_fork (struct t_xfer *xfer)
{
case -1: /* fork failed */
weechat_printf (NULL,
- _("%s%s: unable to fork"),
- weechat_prefix ("error"), XFER_PLUGIN_NAME);
+ _("%s%s: unable to fork (%s)"),
+ weechat_prefix ("error"),
+ XFER_PLUGIN_NAME,
+ strerror (errno));
xfer_close (xfer, XFER_STATUS_FAILED);
xfer_buffer_refresh (WEECHAT_HOTLIST_MESSAGE);
return;