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:
bootstraponline
2013-02-08 11:27:05 -05:00
parent 930b3edda1
commit 82995f4740
+4 -1
View File
@@ -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