Merge pull request #174 from adiktofsugar/master

Added handler for fail.load
This commit is contained in:
Vlad Filippov 2014-10-06 23:25:55 -04:00
commit c063f68da9

View File

@ -176,6 +176,11 @@ module.exports = function(grunt) {
return new Array(+times * tabstop).join(' '); return new Array(+times * tabstop).join(' ');
} }
phantomjs.on('fail.load', function() {
grunt.log.writeln();
grunt.warn('PhantomJS failed to load your page.', 90);
});
phantomjs.on('fail.timeout', function() { phantomjs.on('fail.timeout', function() {
grunt.log.writeln(); grunt.log.writeln();
grunt.warn('PhantomJS timed out, possibly due to an unfinished async spec.', 90); grunt.warn('PhantomJS timed out, possibly due to an unfinished async spec.', 90);