[script] Add rule ID to error

in order to increase debugability

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-03-04 01:33:45 +01:00
parent 2b3e0b4078
commit 722cfe76c7
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -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 {