From 5f8f5a9f85c2383b879696d5e7486c4469b3c069 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 4 Sep 2013 18:50:54 -0500 Subject: [PATCH] Add a `console.log` in test.js when PhantomJS fails to load a given page. --- test/test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test.js b/test/test.js index f1c488e71..51e957e15 100644 --- a/test/test.js +++ b/test/test.js @@ -52,7 +52,8 @@ var page = require('webpage').create(); page.open(filePath, function(status) { if (status !== 'success') { - phantom.exit(1); + console.log('PhantomJS failed to load page: ' + filePath); + phantom.exit(1); } });