nats-hemera
Advanced tools
Comparing version 0.1.29 to 0.1.30
@@ -53,10 +53,10 @@ /*! | ||
var | ||
HemeraError = SuperError.subclass('HemeraError'), | ||
ParseError = HemeraError.subclass('HemeraParseError'), | ||
TimeoutError = HemeraError.subclass('TimeoutError'), | ||
ImplementationError = HemeraError.subclass('ImplementationError'), | ||
BusinessError = HemeraError.subclass('BusinessError'), | ||
FatalError = HemeraError.subclass('FatalError'), | ||
PatternNotFound = HemeraError.subclass('PatternNotFound'), | ||
PayloadValidationError = SuperError.subclass('PayloadValidationError') | ||
HemeraError = SuperError.subclass('HemeraError'), | ||
ParseError = HemeraError.subclass('HemeraParseError'), | ||
TimeoutError = HemeraError.subclass('TimeoutError'), | ||
ImplementationError = HemeraError.subclass('ImplementationError'), | ||
BusinessError = HemeraError.subclass('BusinessError'), | ||
FatalError = HemeraError.subclass('FatalError'), | ||
PatternNotFound = HemeraError.subclass('PatternNotFound'), | ||
PayloadValidationError = SuperError.subclass('PayloadValidationError') | ||
@@ -512,3 +512,18 @@ | ||
if (typeof cb === 'function') { | ||
cb(error) | ||
try { | ||
cb(error) | ||
} catch (err) { | ||
let error = new FatalError().causedBy(err) | ||
this.log().fatal(error) | ||
//Let it crash | ||
if (this.config.crashOnFatal) { | ||
this.fatal() | ||
} | ||
} | ||
} | ||
@@ -515,0 +530,0 @@ |
{ | ||
"name": "nats-hemera", | ||
"author": "Dustin Deus (https://github.com/StarpTech)", | ||
"version": "0.1.29", | ||
"version": "0.1.30", | ||
"main": "index.js", | ||
@@ -65,3 +65,3 @@ "homepage": "https://starptech.github.io/hemera/", | ||
"memwatch-next": "^0.3.0", | ||
"mocha": "3.1.x", | ||
"mocha": "~3.2.0", | ||
"mocha-lcov-reporter": "1.2.x", | ||
@@ -68,0 +68,0 @@ "nats": "0.6.x", |
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
31101
448