You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +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) {
|
function print (err, reply) {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.log('Error: ' + err);
|
// A error always begins with Error:
|
||||||
|
console.log(err.toString());
|
||||||
} else {
|
} else {
|
||||||
console.log('Reply: ' + reply);
|
console.log('Reply: ' + reply);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user