mssql-cr-layer 2.0.18 → 2.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mssql-cr-layer",
3
- "version": "2.0.18",
3
+ "version": "2.0.19",
4
4
  "description": "A MS SQL Server interface layer for common requests",
5
5
  "repository": "andrglo/mssql-cr-layer",
6
6
  "author": {
package/src/index.js CHANGED
@@ -272,12 +272,15 @@ MssqlCrLayer.prototype.query = function(statement, params, options) {
272
272
  })
273
273
  })
274
274
  .catch(function(error) {
275
- debug('%s %O', statement, error)
276
275
  return ps.unprepare().then(function() {
277
276
  throw error
278
277
  })
279
278
  })
280
279
  })
280
+ .catch(err => {
281
+ debug('%s %O', statement, err)
282
+ throw err
283
+ })
281
284
  }
282
285
 
283
286
  /**