Merge pull request #15766 from RoadieHQ/surface-cause-of-json-rules-engine-error

surface the cause of the json rules engine
This commit is contained in:
Ben Lambert
2023-01-18 11:58:34 +01:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-tech-insights-backend-module-jsonfc': patch
---
Surface the cause of the json rules engine
@@ -141,7 +141,9 @@ export class JsonRulesEngineFactChecker
);
} catch (e) {
if (isError(e)) {
throw new Error(`Failed to run rules engine, ${e.message}`);
throw new Error(`Failed to run rules engine, ${e.message}`, {
cause: e,
});
}
throw e;
}