Comparing version 7.6.1 to 7.6.2
@@ -168,3 +168,3 @@ 'use strict'; | ||
if (!this._connectionOptions) { | ||
['host', 'port', 'db', 'authKey', 'timeout', 'ssl'].forEach((item) => { | ||
['host', 'port', 'db', 'authKey', 'timeout', 'ssl', 'user', 'password'].forEach((item) => { | ||
@@ -171,0 +171,0 @@ if (this._settings[item] !== undefined) { |
@@ -415,4 +415,10 @@ 'use strict'; | ||
const message = (typeof err === 'string' ? err : 'Database error'); | ||
const message = (typeof err === 'string' ? err : err.message); | ||
const data = { error: err, table, action, inputs }; | ||
if (err instanceof Error) { | ||
data.error.stack = err.stack; | ||
data.error.message = err.message; | ||
} | ||
const error = Boom.internal(message, data); | ||
@@ -419,0 +425,0 @@ |
{ | ||
"name": "penseur", | ||
"description": "Lightweight RethinkDB wrapper", | ||
"version": "7.6.1", | ||
"version": "7.6.2", | ||
"author": "Eran Hammer <eran@hammer.io> (http://hueniverse.com)", | ||
@@ -24,3 +24,3 @@ "repository": "git://github.com/hueniverse/penseur", | ||
"code": "4.x.x", | ||
"lab": "11.x.x" | ||
"lab": "13.x.x" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
57716
1490