diff --git a/lib/tools/phantomas/phantomasWrapper.js b/lib/tools/phantomas/phantomasWrapper.js index ac1dfa5..520013e 100644 --- a/lib/tools/phantomas/phantomasWrapper.js +++ b/lib/tools/phantomas/phantomasWrapper.js @@ -151,6 +151,11 @@ var PhantomasWrapper = function() { } cb(errorCode, json); + + }).fail(function() { + // This function is useless, but the failing promise needs to be handled, + // otherwise the module meow writes in the console in case of a timeout (error code 252). + debug('Failing promise handled'); }); phantomasPid = process.pid;