@nclabs/nestjs-rpc-module
Advanced tools
Comparing version 0.1.22 to 0.1.23
@@ -40,2 +40,3 @@ "use strict"; | ||
return this.client.send(`${rpcPrt}${service}`, payload).pipe((0, rxjs_1.catchError)((err) => { | ||
const { source = {} } = err || {}; | ||
const error = new nclabs_exeption_1.NclabsException({ | ||
@@ -46,9 +47,7 @@ code: err.code || err.error?.code || 500, | ||
error: err.error || {}, | ||
source: err.source || {}, | ||
source: { | ||
operation: context.switchToRpc().getContext().getArgs()[0], | ||
source, | ||
}, | ||
}); | ||
console.log(err); | ||
console.log('-------------------------------'); | ||
console.log(error); | ||
console.log('-------------------------------'); | ||
console.log(' '); | ||
return (0, rxjs_1.throwError)(() => error); | ||
@@ -55,0 +54,0 @@ return (0, nclabs_rxjs_error_handler_1.NclabsRxjsErrorHandler)(error); |
{ | ||
"name": "@nclabs/nestjs-rpc-module", | ||
"version": "0.1.22", | ||
"version": "0.1.23", | ||
"description": "Utilitário NestJS para configuração de rotas e cache em microsserviços. Utilizado especificamente para projetos nclabs", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
432626
3474