Fix error 252 console output when there is a timeout while using the CLI

This commit is contained in:
Gaël Métais
2016-03-24 15:47:50 +02:00
parent 14f60d8dd3
commit 531d125dcc
+5
View File
@@ -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;