File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ function createConnection (opts) {
6
6
if ( ! Promise ) {
7
7
throw new Error ( 'no Promise implementation available.' +
8
8
'Use promise-enabled node version or pass userland Promise' +
9
- ' implementation as parameter, for example: { Promise: require(\'es6-promise \').Promise }' ) ;
9
+ ' implementation as parameter, for example: { Promise: require(\'bluebird \') }' ) ;
10
10
}
11
11
return new Promise ( function ( resolve , reject ) {
12
12
coreConnection . once ( 'connect' , function ( connectParams ) {
@@ -168,7 +168,12 @@ PromiseConnection.prototype.prepare = function () {
168
168
169
169
function createPool ( opts ) {
170
170
var corePool = core . createPool ( opts ) ;
171
- var Promise = opts . Promise || global . Promise || require ( 'es6-promise' ) ;
171
+ var Promise = opts . Promise || global . Promise ;
172
+ if ( ! Promise ) {
173
+ throw new Error ( 'no Promise implementation available.' +
174
+ 'Use promise-enabled node version or pass userland Promise' +
175
+ ' implementation as parameter, for example: { Promise: require(\'bluebird\') }' ) ;
176
+ }
172
177
173
178
var promisePool = {
174
179
getConnection : function ( ) {
You can’t perform that action at this time.
0 commit comments