Skip to content

Commit

Permalink
Merge pull request teampoltergeist#119 from nestd/master
Browse files Browse the repository at this point in the history
Clear error why the remote debugger could not be used
  • Loading branch information
jonleighton committed Jul 24, 2012
2 parents 72e5d2d + 8aa20a5 commit d5f7ffa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/capybara/poltergeist/driver.rb
Expand Up @@ -129,8 +129,13 @@ def network_traffic
end

def debug
inspector.open
pause
if @options[:inspector]
inspector.open
pause
else
raise Error, "To use the remote debugging, you have to launch the driver " \
"with `:inspector => true` configuration option"
end
end

def pause
Expand Down

0 comments on commit d5f7ffa

Please sign in to comment.