We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 427e105 commit 1cbb69dCopy full SHA for 1cbb69d
lib/appium_lib/console.rb
@@ -104,7 +104,7 @@ def capabilities
104
# Converts environment variable APP_PATH to an absolute path.
105
# @return [String] APP_PATH as an absolute path
106
def absolute_app_path
107
- raise 'APP_PATH environment variable not set!' if APP_PATH.nil?
+ raise 'APP_PATH environment variable not set!' if APP_PATH.nil? || APP_PATH.empty?
108
return APP_PATH if APP_PATH.match(/^http/) # public URL for Sauce
109
if APP_PATH.match(/^\//) # absolute file path
110
raise "App doesn't exist. #{APP_PATH}" unless File.exist? APP_PATH
0 commit comments