Restore hotfix from #4128 (#4283)

This commit is contained in:
Igor Savin 2021-02-08 15:55:16 +02:00 committed by GitHub
parent 230845d3c2
commit b0d8d831dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,11 @@ class Transaction_MSSQL extends Transaction {
return;
}
if (error) {
err.originalError = error;
try {
err.originalError = error;
} catch (_err) {
// This is to handle https://github.com/knex/knex/issues/4128
}
}
this._rejecter(err);
});