@capriza/connector-controller
Advanced tools
Comparing version 1.0.46 to 1.0.47
@@ -114,3 +114,10 @@ var Syncher = require ("./syncher.js"); | ||
logger.info (`Passing approval '${data.approval.private.id}' to connector to perform action '${type}'`); | ||
await this.BL[type](data, {logger : blLogger}); | ||
try { | ||
await this.BL[type](data, {logger: blLogger}); | ||
} catch (ex){ | ||
var err = new Error (`Error performing action ${type}`); | ||
err.error = "CONNECTOR_ERROR"; | ||
err.details = ex; | ||
throw err; | ||
} | ||
logger.info (`Connector performed action successfully!`); | ||
@@ -117,0 +124,0 @@ |
{ | ||
"name": "@capriza/connector-controller", | ||
"version": "1.0.46", | ||
"version": "1.0.47", | ||
"description": "Capriza connectors controller", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
132190
1548