microframework
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -98,3 +98,12 @@ "use strict"; | ||
.catch(function (err) { | ||
return _this.shutdownAllModules().then(function () { throw err; }); | ||
// we need to catch any kind of error in the shutdown and provide original error instead, | ||
// because otherwise if shutdown will fail user will not know about orignal issue | ||
try { | ||
return _this.shutdownAllModules() | ||
.then(function () { throw err; }) | ||
.catch(function () { throw err; }); | ||
} | ||
catch (errorInShutdown) { | ||
throw err; | ||
} | ||
}); | ||
@@ -101,0 +110,0 @@ }; |
{ | ||
"name": "microframework", | ||
"private": false, | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Micro framework is a bundle of express.js, mongodb ODM, validator, dependancy injection framework and restful controllers for your apps using Typescript", | ||
@@ -6,0 +6,0 @@ "license": "Apache-2.0", |
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
65259
923