summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-10-25 07:37:43 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-10-25 07:37:43 +0100
commit61a4c1b5c15800d7db3f73da4c421601592f6ffe (patch)
tree829c70fa4f1c48eb9b3f1c2551537a45cedb5707 /src/plugins
parent7f643bc11fa69b876b50d34320285a351490c8c1 (diff)
downloadweechat-61a4c1b5c15800d7db3f73da4c421601592f6ffe.zip
fifo: add buffer name in error when the buffer is not found
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/fifo/fifo.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/fifo/fifo.c b/src/plugins/fifo/fifo.c
index 8694b57c8..a0474e4b8 100644
--- a/src/plugins/fifo/fifo.c
+++ b/src/plugins/fifo/fifo.c
@@ -259,7 +259,7 @@ fifo_exec (const char *text)
if (!pos_msg)
{
weechat_printf (NULL,
- _("%s%s: error, invalid text received on pipe"),
+ _("%s%s: invalid text received in pipe"),
weechat_prefix ("error"), FIFO_PLUGIN_NAME);
free (text2);
return;
@@ -267,15 +267,15 @@ fifo_exec (const char *text)
pos_msg[0] = '\0';
pos_msg += 2;
ptr_buffer = weechat_buffer_search ("==", text2);
- }
-
- if (!ptr_buffer)
- {
- weechat_printf (NULL,
- _("%s%s: error, buffer not found for pipe data"),
- weechat_prefix ("error"), FIFO_PLUGIN_NAME);
- free (text2);
- return;
+ if (!ptr_buffer)
+ {
+ weechat_printf (NULL,
+ _("%s%s: buffer \"%s\" not found"),
+ weechat_prefix ("error"), FIFO_PLUGIN_NAME,
+ text2);
+ free (text2);
+ return;
+ }
}
weechat_command (ptr_buffer, pos_msg);