lib/eco/cli/config/default/workflow.rb in eco-helpers-1.1.2 vs lib/eco/cli/config/default/workflow.rb in eco-helpers-1.1.3
- old
+ new
@@ -1,8 +1,15 @@
ASSETS.cli.config do |config|
ASSETS.config.workflow do |wf|
io = nil
+ # default rescue
+ wf.rescue do |exception, io|
+ #io.session.logger.error(exception.patch_full_message)
+ wf.run(:close, io: io)
+ io
+ end
+
wf.on(:options) do |wf_options, io|
io = io.new(options: config.options_set.process(io: io))
end
wf.for(:load) do |wf_load|