summaryrefslogtreecommitdiff
path: root/src/core/wee-command.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-05-27 20:13:35 +0200
committerSébastien Helleu <flashcode@flashtux.org>2016-05-27 20:13:35 +0200
commit7342a47de00b310dcc3d1f5babb99bdecb9382aa (patch)
treeafe9a927d9c61fc8479d5133af2e9eb4315d1849 /src/core/wee-command.c
parent7b053b7c40939c999b979531c567291788cb0233 (diff)
downloadweechat-7342a47de00b310dcc3d1f5babb99bdecb9382aa.zip
core, irc, xfer: display more information in memory allocation errors (issue #573)
Diffstat (limited to 'src/core/wee-command.c')
-rw-r--r--src/core/wee-command.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index ac6bd6ce6..a55aa0055 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -239,8 +239,9 @@ COMMAND_CALLBACK(bar)
if (!str_type)
{
gui_chat_printf (NULL,
- _("%sNot enough memory"),
- gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
+ _("%sNot enough memory (%s)"),
+ gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
+ "/bar");
return WEECHAT_RC_OK;
}
type = gui_bar_search_type (str_type);
@@ -5081,8 +5082,9 @@ COMMAND_CALLBACK(repeat)
if (!repeat_args)
{
gui_chat_printf (NULL,
- _("%sNot enough memory"),
- gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
+ _("%sNot enough memory (%s)"),
+ gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
+ "/repeat");
return WEECHAT_RC_OK;
}
repeat_args[0] = strdup (buffer->full_name);
@@ -6040,8 +6042,9 @@ COMMAND_CALLBACK(upgrade)
if (!ptr_binary && !quit)
{
gui_chat_printf (NULL,
- _("%sNot enough memory"),
- gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
+ _("%sNot enough memory (%s)"),
+ gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
+ "/upgrade");
return WEECHAT_RC_OK;
}
@@ -6400,8 +6403,9 @@ COMMAND_CALLBACK(wait)
if (!timer_args)
{
gui_chat_printf (NULL,
- _("%sNot enough memory"),
- gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
+ _("%sNot enough memory (%s)"),
+ gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
+ "/wait");
return WEECHAT_RC_OK;
}
timer_args[0] = strdup (buffer->full_name);