Comparing version 2.3.0 to 2.3.1
@@ -0,1 +1,5 @@ | ||
## 2.3.1/2016-10-23 | ||
- print error when connect mongodb failed | ||
## 2.3.0/2016-10-11 | ||
@@ -2,0 +6,0 @@ |
@@ -52,2 +52,6 @@ 'use strict'; | ||
return this._db; | ||
}) | ||
.catch(e => { | ||
console.error(e); | ||
throw e; | ||
}); | ||
@@ -54,0 +58,0 @@ return this._conn; |
@@ -43,2 +43,6 @@ 'use strict'; | ||
return this._coll; | ||
}) | ||
.catch(e => { | ||
console.error(e); | ||
throw e; | ||
}); | ||
@@ -45,0 +49,0 @@ return this._conn; |
{ | ||
"name": "mongolass", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Elegant MongoDB driver for Node.js.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -67,3 +67,6 @@ ## Mongolass | ||
.then(console.log) | ||
.catch(console.error); | ||
.catch(function (e) { | ||
console.error(e); | ||
console.error(e.stack); | ||
}); | ||
/* | ||
@@ -80,2 +83,12 @@ { [Error: ($.age: "wrong age") ✖ (type: number)] | ||
args: [] } | ||
Error | ||
at Model.insertOne (/Users/nswbmw/Desktop/mongolass-demo/node_modules/mongolass/lib/query.js:107:16) | ||
at Object.<anonymous> (/Users/nswbmw/Desktop/mongolass-demo/app.js:23:4) | ||
at Module._compile (module.js:409:26) | ||
at Object.Module._extensions..js (module.js:416:10) | ||
at Module.load (module.js:343:32) | ||
at Function.Module._load (module.js:300:12) | ||
at Function.Module.runMain (module.js:441:10) | ||
at startup (node.js:139:18) | ||
at node.js:974:3 | ||
*/ | ||
@@ -82,0 +95,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
71087
1927
239