Update datasource.js

Return a real `Error` message for the default `ping()` method.
This commit is contained in:
Ritchie Martori 2016-06-02 14:02:06 -07:00
parent 6028826826
commit 293a22fd31
1 changed files with 1 additions and 1 deletions

View File

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