Skip to content

Commit f0d9d70

Browse files
authored
Merge pull request #165 from rubycdp/fix-163-timeout-error
Fix #163 improve timeout error description
2 parents b87a463 + 49dcb32 commit f0d9d70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ferrum.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ProcessTimeoutError < Error
4747

4848
def initialize(timeout, output)
4949
@output = output
50-
super("Browser did not produce websocket url within #{timeout} seconds")
50+
super("Browser did not produce websocket url within #{timeout} seconds, try to increase `:process_timeout`. See https://github.com/rubycdp/ferrum#customization")
5151
end
5252
end
5353

spec/browser_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ module Ferrum
6060
Browser.new(browser_path: path, process_timeout: 2)
6161
}.to raise_error(
6262
Ferrum::ProcessTimeoutError,
63-
"Browser did not produce websocket url within 2 seconds"
63+
"Browser did not produce websocket url within 2 seconds, try to increase `:process_timeout`. See https://github.com/rubycdp/ferrum#customization"
6464
)
6565
end
6666

0 commit comments

Comments
 (0)