Skip to content

Commit

Permalink
fix: slightly better error message for internal assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
dkales committed Jun 6, 2024
1 parent a5fe067 commit 67cd798
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion circom-mpc-vm/src/mpc_vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ impl<P: Pairing, C: CircomWitnessExtensionProtocol<P::ScalarField>> Component<P,
op_codes::MpcOpCode::Assert => {
let assertion = self.pop_field();
if protocol.is_zero(assertion) {
panic!("assertion failed");
// TODO: Handle nicer
panic!("Assertion failed during execution");
}
}
op_codes::MpcOpCode::Add => {
Expand Down

0 comments on commit 67cd798

Please sign in to comment.