diff --git a/acvm-repo/acvm_js/src/execute.rs b/acvm-repo/acvm_js/src/execute.rs index 439a929cc9..3f691e1abf 100644 --- a/acvm-repo/acvm_js/src/execute.rs +++ b/acvm-repo/acvm_js/src/execute.rs @@ -61,8 +61,8 @@ pub async fn execute_circuit_with_black_box_solver( foreign_call_handler: ForeignCallHandler, ) -> Result { console_error_panic_hook::set_once(); - let circuit: Circuit = - Circuit::deserialize_circuit(&circuit).expect("Failed to deserialize circuit"); + let circuit: Circuit = Circuit::deserialize_circuit(&circuit) + .map_err(|_| JsExecutionError::new("Failed to deserialize circuit. This is likely due to differing serialization formats between ACVM_JS and your compiler".to_string(), None))?; let mut acvm = ACVM::new(&solver.0, &circuit.opcodes, initial_witness.into()); diff --git a/cspell.json b/cspell.json index c4a530b8d3..8e3f248acf 100644 --- a/cspell.json +++ b/cspell.json @@ -11,6 +11,7 @@ "arity", "arkworks", "arraysort", + "barebones", "barretenberg", "bincode", "bindgen", @@ -82,6 +83,7 @@ "jmpif", "jmpifs", "jmps", + "jsdoc", "Jubjub", "keccak", "krate", @@ -154,8 +156,7 @@ "vecmap", "wasi", "Weierstraß", - "zshell", - "barebones" + "zshell" ], "ignorePaths": [ "./**/node_modules/**"