diff options
Diffstat (limited to 'app/lib')
-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 |