surface the cause of the json rules engine

Signed-off-by: Brian Fletcher <brian@roadie.io>
This commit is contained in:
Brian Fletcher
2023-01-16 10:58:31 +00:00
parent 7443df679a
commit ef8f19256f
@@ -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;
}