Skip to content

Commit

Permalink
Merge pull request #71 from frankvm04/master
Browse files Browse the repository at this point in the history
Add print function
  • Loading branch information
luin committed Jun 11, 2015
2 parents c06abec + 64bc0d1 commit a1a1895
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,11 @@ exports = module.exports = require('./lib/redis');
exports.ReplyError = require('./lib/reply_error');
exports.Promise = require('bluebird');
exports.Cluster = require('./lib/cluster');

exports.print = function (err, reply) {
if (err) {
console.log("Error: " + err);
} else {
console.log("Reply: " + reply);
}
};

0 comments on commit a1a1895

Please sign in to comment.