Skip to content

Commit 2d07ed0

Browse files
Raise instead of puts
1 parent d904c0f commit 2d07ed0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/appium_lib/console.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ def start_driver wait=30
149149
begin
150150
$driver = Selenium::WebDriver.for(:remote, http_client: @client, desired_capabilities: capabilities, url: server_url)
151151
rescue Errno::ECONNREFUSED
152-
puts 'ERROR: Unable to connect to Appium. Is the server running?'
153-
exit
152+
raise 'ERROR: Unable to connect to Appium. Is the server running?'
154153
end
155154

156155
# Set timeout to a large number so that Appium doesn't quit

0 commit comments

Comments
 (0)