lib/input_sequencer.rb in markdown_exec-2.0.3 vs lib/input_sequencer.rb in markdown_exec-2.0.3.1
- old
+ new
@@ -32,12 +32,12 @@
inherited_dependencies: next_state.inherited_dependencies,
inherited_lines: next_state.inherited_lines,
prior_block_was_link: next_state.prior_block_was_link.nil? ? current.prior_block_was_link : next_state.prior_block_was_link
)
rescue
- pp backtrace
- binding.irb
+ pp $!, $@
+ exit 1
end
# Generates the next menu state based on provided attributes.
def self.next_link_state(block_name: nil, display_menu: nil, document_filename: nil, prior_block_was_link: false)
@@ -117,11 +117,11 @@
# imw_ins next_menu, 'next_menu'
end
now_menu = InputSequencer.merge_link_state(now_menu, next_menu)
end
rescue
- pp backtrace
- binding.irb
+ pp $!, $@
+ exit 1
end
end
return if __FILE__ != $PROGRAM_NAME