From b41d01b4ad88e6f77e8df1c2e9afab4bb6fc8244 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 15 Mar 2015 18:49:32 +0000 Subject: [PATCH] extract err --- modules/api/api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/api/api.js b/modules/api/api.js index ca6306c..ecbe3b4 100644 --- a/modules/api/api.js +++ b/modules/api/api.js @@ -51,6 +51,7 @@ var api = function(dbot) { if(callbackIndex != -1) { args[callbackIndex] = function() { body.data = Array.prototype.slice.call(arguments, 0); + console.log(body); if(_.isObject(body.data) && _.has(body.data, 'err')) { body.err = body.data.err; }