Comparing version 1.4.1 to 1.4.2
@@ -26,4 +26,5 @@ var PQ = module.exports = require('bindings')('addon.node').PQ; | ||
if(!connected) { | ||
var err = new Error(this.errorMessage()); | ||
this.finish(); | ||
throw new Error(this.errorMessage()); | ||
throw err; | ||
} | ||
@@ -30,0 +31,0 @@ }; |
{ | ||
"name": "libpq", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Low-level native bindings to PostgreSQL libpq", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -9,2 +9,3 @@ var PQ = require('../') | ||
} catch(e) { | ||
assert.equal(e.toString().indexOf('connection pointer is NULL'), -1) | ||
return; | ||
@@ -11,0 +12,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80566
981