mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Fixes #6935 - Let Bluebird know Promise is not runaway
This commit is contained in:
parent
db3df16c21
commit
b3c88b8c14
1 changed files with 3 additions and 2 deletions
|
@ -255,8 +255,9 @@ ConfigManager.prototype.load = function (configFilePath) {
|
|||
Promise.resolve(pendingConfig).then(function () {
|
||||
return self.validate();
|
||||
}).then(function (rawConfig) {
|
||||
resolve(self.init(rawConfig));
|
||||
}).catch(reject);
|
||||
return self.init(rawConfig);
|
||||
}).then(resolve)
|
||||
.catch(reject);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue