mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 03:47:50 +00:00
Add a console.log in test.js when PhantomJS fails to load a given page.
This commit is contained in:
@@ -52,7 +52,8 @@
|
|||||||
var page = require('webpage').create();
|
var page = require('webpage').create();
|
||||||
page.open(filePath, function(status) {
|
page.open(filePath, function(status) {
|
||||||
if (status !== 'success') {
|
if (status !== 'success') {
|
||||||
phantom.exit(1);
|
console.log('PhantomJS failed to load page: ' + filePath);
|
||||||
|
phantom.exit(1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user