From ca4ec140e3031bf4f3bd8aefb49f3bbbd1a92553 Mon Sep 17 00:00:00 2001 From: randoum Date: Sat, 9 Mar 2013 11:44:40 +0800 Subject: [PATCH] Add simple description to exception Add description to NotSupportedByDriverError exception to help tracking during debugging --- lib/capybara/driver/base.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/capybara/driver/base.rb b/lib/capybara/driver/base.rb index 83fd58e2..414fc44e 100644 --- a/lib/capybara/driver/base.rb +++ b/lib/capybara/driver/base.rb @@ -20,31 +20,31 @@ class Capybara::Driver::Base end def execute_script(script) - raise Capybara::NotSupportedByDriverError + raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#execute_script' end def evaluate_script(script) - raise Capybara::NotSupportedByDriverError + raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#evaluate_script' end def save_screenshot(path, options={}) - raise Capybara::NotSupportedByDriverError + raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#save_screenshot' end def response_headers - raise Capybara::NotSupportedByDriverError + raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#response_headers' end def status_code - raise Capybara::NotSupportedByDriverError + raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#status_code' end def within_frame(frame_handle) - raise Capybara::NotSupportedByDriverError + raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#within_frame' end def within_window(handle) - raise Capybara::NotSupportedByDriverError + raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#within_window' end def invalid_element_errors