remote/client/src/rb/lib/selenium/webdriver/remote/response.rb in selenium-webdriver-0.0.12 vs remote/client/src/rb/lib/selenium/webdriver/remote/response.rb in selenium-webdriver-0.0.13
- old
+ new
@@ -28,10 +28,13 @@
private
def assert_ok
if @code.nil? || @code > 400
if e = error()
- raise Error.for_remote_class(e['class']), e['message']
+ raise(
+ Error.for_remote_class(e['class']),
+ e['message'] || self
+ )
else
raise ServerError, self
end
end
end
\ No newline at end of file