1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 09:43:13 +02:00

fifo: add buffer name in error when the buffer is not found

This commit is contained in:
Sébastien Helleu
2015-10-25 07:37:43 +01:00
parent 7f643bc11f
commit 61a4c1b5c1
13 changed files with 106 additions and 77 deletions
+10 -10
View File
@@ -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);