couch-init2
Advanced tools
Comparing version 2.1.7 to 2.1.8
@@ -1,2 +0,1 @@ | ||
const _ = require('inv-loggers') | ||
const bluebird = require('bluebird') | ||
@@ -37,3 +36,9 @@ | ||
.then(res => ({ ok: true })) | ||
.catch(_.ErrorRethrow('db init err')) | ||
.catch(err => { | ||
if (err.message === 'Name or password is incorrect.') { | ||
throw new Error('CouchDB name or password is incorrect') | ||
} else { | ||
throw err | ||
} | ||
}) | ||
} |
@@ -28,3 +28,2 @@ const _ = require('inv-loggers') | ||
.catch(create(nano, dbName)) | ||
.catch(_.ErrorRethrow('ensureDbExistance')) | ||
} | ||
@@ -31,0 +30,0 @@ |
{ | ||
"name": "couch-init2", | ||
"version": "2.1.7", | ||
"version": "2.1.8", | ||
"description": "Opiniated CouchDB databases initializer", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
53617
182