diff --git a/src/processor.js b/src/processor.js index 9266952..51988d6 100644 --- a/src/processor.js +++ b/src/processor.js @@ -209,7 +209,7 @@ LogsProcessor.prototype.run = function(handler) { ]; if (options.logger) { - options.logger.error(error[0], error[1]); + options.logger.error(error[0] && error[0].message || error[0], error[1]); } // We're giving up.