Permalink
Browse files

Check for selenium jar before trying to execute

  • Loading branch information...
1 parent d61ebc5 commit 2bd7dc72fd6ad51ff5ece595c0cc2679726fe417 @adrianblynch adrianblynch committed Jun 20, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 server.cfc
View
@@ -20,6 +20,9 @@
<cfset var loopStart = getTickCount()>
<cfif not serverIsRunning()>
<cfset jarPath= "#expandPath(variables.seleniumJarPath)#">
+ <cfif not fileExists(jarPath)>
+ <cfthrow message="Could not find #jarPath#">
+ </cfif>
<cfset isRunning = false>
<cfset args = "-jar ""#jarPath#"" #variables.seleniumServerArguments#">
<cfset logStatus( text="!!!! STARTING Selenium RC with jar path: #jarPath#! args were: #args#." )>

0 comments on commit 2bd7dc7

Please sign in to comment.