Skip to content

Commit

Permalink
fix: add more verbose panic
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-camuto committed Feb 26, 2024
1 parent fe7522c commit 4d7e6dd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion halo2_proofs/src/poly/domain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,15 @@ impl<F: WithSmallOrderMulGroup<3>> EvaluationDomain<F> {
}

// ensure extended_k <= S
assert!(extended_k <= F::S);
assert!(
extended_k <= F::S,
"extended_k ({}, k={}, j={}) with degree ({}) must be <= S ({}), the size of the field",
extended_k,
k,
j,
n * quotient_poly_degree,
F::S
);

let mut extended_omega = F::ROOT_OF_UNITY;

Expand Down

0 comments on commit 4d7e6dd

Please sign in to comment.