mirror of
https://github.com/appium/appium.git
synced 2026-04-27 22:10:35 -05:00
Add error detection to absolute_app_path
A specific error message is better than the current "Timeout::Error:" when the app doesn't exist or isn't a directory.
This commit is contained in:
@@ -43,7 +43,10 @@ def capabilities
|
||||
end
|
||||
|
||||
def absolute_app_path
|
||||
File.join(File.dirname(__FILE__), APP_PATH)
|
||||
file = File.join(File.dirname(__FILE__), APP_PATH)
|
||||
raise "App doesn't exist #{file}" unless File.exist? file
|
||||
raise "App must be a directory #{file}" unless File.directory? file
|
||||
file
|
||||
end
|
||||
|
||||
def server_url
|
||||
|
||||
Reference in New Issue
Block a user