1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

Small utils improvements

Don't write "Error:" infront of errors
This commit is contained in:
Ruben Bridgewater
2016-03-01 16:42:15 +01:00
parent 711d51c387
commit 290bf1d651

View File

@@ -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);
}