Merge pull request #980 from strongloop/updata_datasource_2.x

Updata datasource.js
This commit is contained in:
Amir-61 2016-06-17 13:42:22 -04:00 committed by GitHub
commit 48e949e996
1 changed files with 1 additions and 1 deletions

View File

@ -2150,7 +2150,7 @@ DataSource.prototype.ping = function(cb) {
self.discoverModelProperties('dummy', {}, cb);
} else {
process.nextTick(function() {
var err = self.connected ? null : 'Not connected';
var err = self.connected ? null : new Error('Not connected');
cb(err);
});
}