Merge pull request #980 from strongloop/updata_datasource_2.x
Updata datasource.js
This commit is contained in:
commit
48e949e996
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue