city41/node-sql-fixtures

Errors not bubbling if using callbacks?

Closed this issue · 0 comments

Looking at the code, I believe there are some cases where if an error occurs and the caller is using callbacks instead of promises, they will not get informed of the error.

Here at the main promise that does most of sql-fixture's work, there is no errback or catch(), and there probably should be.

task: add catch() and use it to inform callback users of the error.