From 02f67881ed2ed121afd6c4f7b485d2e9eac51670 Mon Sep 17 00:00:00 2001 From: Vsevolod Strukchinsky Date: Thu, 2 Oct 2014 11:16:27 +0600 Subject: [PATCH] Remove trim and recoloring error message Closes #22 --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 90491b7..b9a9721 100644 --- a/index.js +++ b/index.js @@ -31,8 +31,9 @@ function defaultErrorHandler(error) { // onerror2 and this handler if (EE.listenerCount(this, 'error') < 3) { gutil.log( - gutil.colors.cyan('Plumber') + ' found unhandled error:', - gutil.colors.red(error.toString().trim())); + gutil.colors.cyan('Plumber') + gutil.colors.red(' found unhandled error:'), + error.toString() + ); } }