Merge pull request #34 from eugene-frb/master

1. Error logging. 2. Options argument of model's include function to …
This commit is contained in:
Raymond Feng 2015-11-23 15:08:19 -08:00
commit 26712a7014
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}