lib/delorean/base.rb in delorean_lang-2.0.0 vs lib/delorean/base.rb in delorean_lang-2.1.0

- old
+ new

@@ -12,10 +12,12 @@ ::Delorean::Cache.adapter = ::Delorean::Cache::Adapters::RubyCache.new( size_per_class: 1000 ) + ::Delorean::Ruby.error_handler = ::Delorean::Ruby::DEFAULT_ERROR_HANDLER + module BaseModule # _e is used by Marty promise_jobs to pass promise-related # information class NodeCall < Struct.new(:_e, :engine, :node, :params) def cloned_params @@ -152,11 +154,10 @@ end ###################################################################### def self._err(*args) - str = args.map(&:to_s).join(', ') - raise str + ::Delorean::Ruby.error_handler.call(*args) end def self._node_call(node, _e, params) context = _e[:_engine]