Add a console.log in test.js when PhantomJS fails to load a given page.

This commit is contained in:
John-David Dalton
2013-09-04 18:50:54 -05:00
parent 1aae24b831
commit 5f8f5a9f85

View File

@@ -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);
}
});