Skip to content

Commit

Permalink
fix: fixes #168 adds context to a non-deterministic compilation error…
Browse files Browse the repository at this point in the history
… in the Assert object
  • Loading branch information
gbotrel committed Nov 8, 2021
1 parent c676d36 commit d0d7ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func (assert *Assert) compile(circuit frontend.Circuit, curveID ecc.ID, backendI

_ccs, err := frontend.Compile(curveID, backendID, circuit, compileOpts...)
if err != nil {
return nil, err
return nil, fmt.Errorf("%w: %v", ErrCompilationNotDeterministic, err)
}

if !reflect.DeepEqual(ccs, _ccs) {
Expand Down

0 comments on commit d0d7ce7

Please sign in to comment.