surface the cause of the json rules engine
Signed-off-by: Brian Fletcher <brian@roadie.io>
This commit is contained in:
+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