diff options
Diffstat (limited to 'src/plugins/trigger/trigger-command.c')
-rw-r--r-- | src/plugins/trigger/trigger-command.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/plugins/trigger/trigger-command.c b/src/plugins/trigger/trigger-command.c index 8ce8db5af..5cb35d0cf 100644 --- a/src/plugins/trigger/trigger-command.c +++ b/src/plugins/trigger/trigger-command.c @@ -587,24 +587,28 @@ trigger_command_trigger (const void *pointer, void *data, case -1: /* format error */ weechat_printf (NULL, _("%s%s: invalid format for regular " - "expression"), + "expression: \"%s\""), weechat_prefix ("error"), - TRIGGER_PLUGIN_NAME); + TRIGGER_PLUGIN_NAME, + sargv[4]); goto end; break; case -2: /* regex compilation error */ weechat_printf (NULL, _("%s%s: invalid regular expression " - "(compilation failed)"), + "(compilation failed): \"%s\""), weechat_prefix ("error"), - TRIGGER_PLUGIN_NAME); + TRIGGER_PLUGIN_NAME, + sargv[4]); goto end; break; case -3: /* memory error */ weechat_printf (NULL, - _("%s%s: not enough memory"), + _("%s%s: not enough memory for regular " + "expression: \"%s\""), weechat_prefix ("error"), - TRIGGER_PLUGIN_NAME); + TRIGGER_PLUGIN_NAME, + sargv[4]); goto end; break; } |