Use more descriptive synthesis errors now available in bellman.

This commit is contained in:
Sean Bowe
2018-02-16 08:45:17 -07:00
parent 683aa93b44
commit 814cfef769
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ impl<E: Engine, Var: Copy> AllocatedNum<E, Var> {
let tmp = *self.value.get()?;
if tmp.is_zero() {
Err(SynthesisError::AssignmentMissing)
Err(SynthesisError::DivisionByZero)
} else {
Ok(tmp.inverse().unwrap())
}