8000 Add a `console.log` in test.js when PhantomJS fails to load a given p… · lodash/lodash@5f8f5a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f8f5a9

Browse files
committed
Add a console.log in test.js when PhantomJS fails to load a given page.
1 parent 1aae24b commit 5f8f5a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
var page = require('webpage').create();
5353
page.open(filePath, function(status) {
5454
if (status !== 'success') {
55-
phantom.exit(1);
55+
console.log('PhantomJS failed to load page: ' + filePath);
56+
phantom.exit(1);
5657
}
5758
});
5859

0 commit comments

Comments
 (0)
0