不要怂,就是干,撸起袖子干!

Commit 54686a37 by Sean Herman

remove the catch altogether from authenticate

1 parent ee8220e3
Showing with 1 additions and 3 deletions
...@@ -931,9 +931,7 @@ Sequelize.prototype.drop = function(options) { ...@@ -931,9 +931,7 @@ Sequelize.prototype.drop = function(options) {
* @return {Promise} * @return {Promise}
*/ */
Sequelize.prototype.authenticate = function(options) { Sequelize.prototype.authenticate = function(options) {
return this.query('SELECT 1+1 AS result', Utils._.assign({ raw: true, plain: true }, options)).return().catch(function(err) { return this.query('SELECT 1+1 AS result', Utils._.assign({ raw: true, plain: true }, options)).return();
throw err;
});
}; };
Sequelize.prototype.databaseVersion = function(options) { Sequelize.prototype.databaseVersion = function(options) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!