lib/lhm/command.rb in lhm-2.0.0 vs lib/lhm/command.rb in lhm-2.1.0

- old
+ new

@@ -5,19 +5,21 @@ class Error < StandardError end module Command def run(&block) + Lhm.logger.info "Starting run of class=#{self.class}" validate if(block_given?) before block.call(self) after else execute end - rescue + rescue => e + Lhm.logger.error "Error in class=#{self.class}, reverting. exception=#{e.class} message=#{e.message}" revert raise end private