about summary refs log tree commit diff
path: root/app/lib
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-17 18:56:00 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:18 -0500
commitf0a34ccad762a34b153be108e7ba1b6c914317a5 (patch)
treee393c723a0ca790b323a5eacec7a72b0a6b7e5aa /app/lib
parent48aa456eb0bd99e0a5ae99a51630597263579c2d (diff)
[Command Tags] Clean up on error
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/command_tag/processor.rb5
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