Skip to content

Commit 290bf1d

Browse files
author
Ruben Bridgewater
committed
Small utils improvements
Don't write "Error:" infront of errors
1 parent 711d51c commit 290bf1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/utils.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ function replyToStrings(reply) {
3232

3333
function print (err, reply) {
3434
if (err) {
35-
console.log('Error: ' + err);
35+
// A error always begins with Error:
36+
console.log(err.toString());
3637
} else {
3738
console.log('Reply: ' + reply);
3839
}

0 commit comments

Comments
 (0)