From 722cfe76c738037b5cdd440bb9df0c8c1f00fdf8 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 4 Mar 2023 01:33:45 +0100 Subject: [PATCH] [script] Add rule ID to error in order to increase debugability Signed-off-by: Knut Ahlers --- action_script.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action_script.go b/action_script.go index 85022aa..4eb0ace 100644 --- a/action_script.go +++ b/action_script.go @@ -92,7 +92,7 @@ func (a ActorScript) Execute(c *irc.Client, m *irc.Message, r *plugins.Rule, eve cmd.Stdout = stdout if err := cmd.Run(); err != nil { - return attrs.MustBool("skip_cooldown_on_error", ptrBoolFalse), errors.Wrap(err, "running command") + return attrs.MustBool("skip_cooldown_on_error", ptrBoolFalse), errors.Wrapf(err, "running command in rule %s", r.UUID) } if stdout.Len() == 0 {