Skip to content

Commit e0311ad

Browse files
committed
fix: block pushes if errors occur when executing the chain
1 parent ef42c07 commit e0311ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/proxy/chain.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ export const executeChain = async (req: any, res: any): Promise<Action> => {
4545
return action;
4646
}
4747
}
48+
} catch (e) {
49+
action.error = true;
50+
action.errorMessage = `An error occurred when executing the chain: ${e}`;
51+
console.error(action.errorMessage);
4852
} finally {
4953
await proc.push.audit(req, action);
5054
if (action.autoApproved) {

0 commit comments

Comments
 (0)