Skip to content

propagate error from cse#478

Merged
guipublic merged 1 commit intomasterfrom
gd/cse_error
Nov 16, 2022
Merged

propagate error from cse#478
guipublic merged 1 commit intomasterfrom
gd/cse_error

Conversation

@guipublic
Copy link
Contributor

Related issue(s)

False constraints like in #474 panic instead of generating an error.

Description

Summary of changes

#474 is not an issue but when getting an always false constraint like in the issue (using a=1), it leads to panic instead of having an error message.

With this PR, errors inside simple_cse are propagated to the caller.

Checklist

  • [X ] I have tested the changes locally.
  • [X ] I have formatted the changes with Prettier and/or cargo fmt with default settings.
  • [X ] I have linked this PR to the issue(s) that it resolves.
  • [ X] I have reviewed the changes on GitHub, line by line.
  • [ X] I have ensured all changes are covered in the description.

Copy link
Contributor

@jfecher jfecher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@guipublic guipublic merged commit 4e613e4 into master Nov 16, 2022
@guipublic guipublic deleted the gd/cse_error branch November 16, 2022 08:42
TomAFrench added a commit to TomAFrench/noir that referenced this pull request Nov 16, 2022
* master:
  Fix conditional with array parameter (noir-lang#475)
  Constant evaluation of to_bits() (noir-lang#464)
  propagate error from cse (noir-lang#478)
  use return value only when witness are all solved (noir-lang#473)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants