Closed sonygod closed 4 years ago
By design, tink libraries do not throw exceptions, but produce errors. You should obtain an error when you start performing queries on the database.
In any case, it would not even be possible to throw an exception there, because connection (or failure to do so) is asynchronous.
The alternative would be to do something like Db.connection('fa_klw', driver)
return a promise, that may have the connection error. In that case you'll have one more level of async though.
If anybody feels strongly about adding an async connection method, please open an issue. Other than that, I consider this issue settled.