Skip to content

Commit 6fadbcc

Browse files
dsemlukeis
authored andcommitted
Fix error reporting when phantomjs doesn't start
You can't pass the exception to `raise` as an argument, you need to to explicitly include it in the string. Signed-off-by: Luke Inman-Semerau <[email protected]>
1 parent 56366a4 commit 6fadbcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: py/selenium/webdriver/phantomjs/service.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def start(self):
7575
stdout=self._log, stderr=self._log)
7676

7777
except Exception as e:
78-
raise WebDriverException("Unable to start phantomjs with ghostdriver.", e)
78+
raise WebDriverException("Unable to start phantomjs with ghostdriver: %s" % e)
7979
count = 0
8080
while not utils.is_connectable(self.port):
8181
count += 1

0 commit comments

Comments
 (0)