From 531d125dcc3bc816f448cd372c6abad4e6ad0a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Thu, 24 Mar 2016 15:47:50 +0200 Subject: [PATCH] Fix error 252 console output when there is a timeout while using the CLI --- lib/tools/phantomas/phantomasWrapper.js | 5 +++++ 1 file changed, 5 insertions(+) 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;