remote/client/src/rb/lib/selenium/webdriver/remote/server_error.rb in selenium-webdriver-0.0.12 vs remote/client/src/rb/lib/selenium/webdriver/remote/server_error.rb in selenium-webdriver-0.0.13

- old
+ new

@@ -4,11 +4,11 @@ class ServerError < StandardError def initialize(response) return super(response) if response.kind_of?(String) - if response.error - super(response.error["message"]) + if response.respond_to?(:error) && err = response.error + super(err["message"] || err['class']) else super("status code #{response.code}") end end \ No newline at end of file