Add simple description to exception

Add description to NotSupportedByDriverError exception to help tracking during debugging
This commit is contained in:
randoum 2013-03-09 11:51:20 +08:00
parent 44be4455bf
commit 6038130f54
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ module Capybara
def inspect
%(#<Capybara::Element tag="#{tag_name}" path="#{path}">)
rescue NotSupportedByDriverError
rescue NotSupportedByDriverError, 'Capybara::Node::Element#inspect'
%(#<Capybara::Element tag="#{tag_name}">)
end
end