We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 769cd05 commit a8f4184Copy full SHA for a8f4184
rb/lib/selenium/webdriver/common/selenium_manager.rb
@@ -73,7 +73,12 @@ def binary
73
def run(command)
74
WebDriver.logger.debug("Executing Process #{command}")
75
76
- stdout, stderr, status = Open3.capture3(command)
+ begin
77
+ stdout, stderr, status = Open3.capture3(command)
78
+ rescue StandardError => e
79
+ raise Error::WebDriverError, "Unsuccessful command executed: #{command}", e
80
+ end
81
+
82
if status.exitstatus.positive?
83
raise Error::WebDriverError, "Unsuccessful command executed: #{command}\n#{stdout}#{stderr}"
84
end
0 commit comments