lib/eco/cli/config/default/workflow.rb in eco-helpers-2.0.17 vs lib/eco/cli/config/default/workflow.rb in eco-helpers-2.0.18

- old
+ new

@@ -4,14 +4,18 @@ io = nil rescued = false # default rescue wf.rescue do |exception, io| - next io if rescued - rescued = true + begin + next io if rescued + rescued = true - io.session.logger.debug(exception.patch_full_message) - wf.run(:close, io: io) + io.session.logger.debug(exception.patch_full_message) + wf.run(:close, io: io) + rescue Exception => e + puts "Some problem in workflow.rescue: #{e}" + end io end wf.on(:options) do |wf_options, io| io = io.new(options: config.options_set.process(io: io))