mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 08:10:08 +00:00
[script] Add rule ID to error
in order to increase debugability Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
2b3e0b4078
commit
722cfe76c7
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue