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:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-tech-insights-backend-module-jsonfc': patch
|
||||
---
|
||||
|
||||
Surface the cause of the json rules engine
|
||||
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user