Merge pull request #960 from strongloop/fix/connection-err-msg
Update datasource.js
This commit is contained in:
commit
73bb418719
|
@ -2151,7 +2151,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