We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a454eda commit f35a69eCopy full SHA for f35a69e
promise.js
@@ -168,7 +168,12 @@ PromiseConnection.prototype.prepare = function () {
168
169
function createPool (opts) {
170
var corePool = core.createPool(opts);
171
- var Promise = opts.Promise || global.Promise || require('bluebird');
+ 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
+ }
177
178
var promisePool = {
179
getConnection: function () {
0 commit comments