From ce41ff620631811f1c47e24fd041bdccecfa132e Mon Sep 17 00:00:00 2001 From: kares Date: Fri, 24 Aug 2012 13:26:04 +0200 Subject: [PATCH] fix a regression introduced in db54adc223 + make sure bundler does not require 'less' --- Gemfile | 2 +- lib/rhino/error.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index a602f48..c65d6eb 100644 --- a/Gemfile +++ b/Gemfile @@ -14,5 +14,5 @@ group :test do else gem 'therubyrhino_jar', :path => '.' end - gem 'less', '>= 2.2.1' + gem 'less', '>= 2.2.1', :require => nil end \ No newline at end of file diff --git a/lib/rhino/error.rb b/lib/rhino/error.rb index 847fbff..a77cd07 100644 --- a/lib/rhino/error.rb +++ b/lib/rhino/error.rb @@ -25,7 +25,7 @@ module Rhino # #Rhino::JS::JavaScriptException instance. def cause return @cause if defined?(@cause) - if @native.respond_to?(:cause) + if @native.respond_to?(:cause) && @native.cause @native.cause else @native.is_a?(JS::RhinoException) ? @native : nil