Log if phantomjs exits with error (e.g. missing libs)

This commit is contained in:
Justin SB
2014-09-30 12:42:17 -07:00
committed by Slava Kim
parent 299fde2be9
commit a200043285

View File

@@ -837,7 +837,12 @@ _.extend(PhantomClient.prototype, {
'/bin/bash',
['-c',
("exec " + phantomPath + " --load-images=no /dev/stdin <<'END'\n" +
phantomScript + "\nEND\n")]);
phantomScript + "\nEND\n")],
{}, function (exitCode, stdout, stderr) {
if (exitCode != 0) {
console.log("PhantomJS exited with exitCode ", exitCode, "\nstdout:\n", stdout, "\nstderr:\n", stderr);
}
});
},
stop: function() {