Handle non-String input to errorStreamHandler

This commit is contained in:
Isaac Murchie
2014-01-22 14:36:36 -08:00
parent 0e9ff597f1
commit 1ce3ea2b6e

View File

@@ -205,8 +205,8 @@ UiAutomator.prototype.handleBootstrapOutput = function (output) {
};
UiAutomator.prototype.errorStreamHandler = function (output) {
var lines = output.split("\n");
_.each(lines, function (line) {
var lines = output.toString().split("\n");
_.each(lines, function(line) {
logger.info(("[UIAUTOMATOR STDERR] " + line).yellow);
});
};