diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-17 18:56:00 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:18 -0500 |
commit | f0a34ccad762a34b153be108e7ba1b6c914317a5 (patch) | |
tree | e393c723a0ca790b323a5eacec7a72b0a6b7e5aa /app | |
parent | 48aa456eb0bd99e0a5ae99a51630597263579c2d (diff) |
[Command Tags] Clean up on error
Diffstat (limited to 'app')
-rw-r--r-- | app/lib/command_tag/processor.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/lib/command_tag/processor.rb b/app/lib/command_tag/processor.rb index 8e540e148..f96bddca0 100644 --- a/app/lib/command_tag/processor.rb +++ b/app/lib/command_tag/processor.rb @@ -84,6 +84,11 @@ class CommandTag::Processor execute_statements(:at_end) all_handlers!(:shutdown) + rescue Failure => e + @status.update(published: false) + @status.destroy + raise + ensure reset_status_caches end |