# File lib/ruote/exp/ro_on_x.rb, line 163 def local_on_error(err) if h.on_error.is_a?(String) or Ruote.is_tree?(h.on_error) return h.on_error end if h.on_error.is_a?(Array) # all for the 'on_error' expression # see test/functional/eft_38_ h.on_error.each do |oe| if (he = HandlerEntry.new(oe)).match(err) return he.narrow end end end nil end