diff --git a/lib/sql.js b/lib/sql.js index 948afe1..d9848ec 100644 --- a/lib/sql.js +++ b/lib/sql.js @@ -406,6 +406,10 @@ SQLConnector.prototype.execute = function(sql, params, options, callback) { }; this.notifyObserversAround('execute', context, function(context, done) { self.executeSQL(context.req.sql, context.req.params, context.options, function(err, info) { + if(err){ + debug('Error: %j %j %j', err, context.req.sql, context.req.params); + } + if (!err && info != null) { context.res = info; }