From 290bf1d65105ae800755c94fd689560eba3f5524 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Tue, 1 Mar 2016 16:42:15 +0100 Subject: [PATCH] Small utils improvements Don't write "Error:" infront of errors --- lib/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index 89d85907fe..069bf30645 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -32,7 +32,8 @@ function replyToStrings(reply) { function print (err, reply) { if (err) { - console.log('Error: ' + err); + // A error always begins with Error: + console.log(err.toString()); } else { console.log('Reply: ' + reply); }