You've already forked node-redis
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user