diff --git a/connect.js b/connect.js
index <HASH>..<HASH> 100644
--- a/connect.js
+++ b/connect.js
@@ -39,7 +39,10 @@ exports.connect = function (config, PassedClass, callback) {
         } catch (e) {}
 
         if (switched) {
-          db.switchDatabase(newConf, function () {
+          db.switchDatabase(newConf, function (err) {
+            if (err) {
+              return callback(err);
+            }
             internals.locTitle = internals.migrationMode;
             callback(
               null,
fix(switchDatabase): no error was thrown on scope switch

switchDatabase error was unhandled, which resulted in an unhandled
scope switch error.

Fixes #<I>