nats-hemera
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -768,10 +768,11 @@ // | ||
let responseError = Errio.parse(self._response.value.error) | ||
let responseErrorCause = responseError.cause | ||
let error = new Errors.BusinessError(Constants.BUSINESS_ERROR, { | ||
pattern: self._cleanPattern | ||
}).causedBy(Errio.parse(self._response.value.error)) | ||
}).causedBy(responseErrorCause ? responseError.cause : responseError) | ||
self.log.error(error) | ||
// error is already wrapped | ||
return cb.call(self, Errio.parse(self._response.value.error)) | ||
return cb.call(self, responseError) | ||
} | ||
@@ -778,0 +779,0 @@ |
{ | ||
"name": "nats-hemera", | ||
"author": "Dustin Deus (https://github.com/StarpTech)", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "homepage": "https://hemerajs.github.io/hemera/", |
82848
985