Skip to content

Commit

Permalink
chore: Better satisfaction error
Browse files Browse the repository at this point in the history
  • Loading branch information
uncomputable committed Oct 2, 2024
1 parent c66214a commit 2e40644
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/program_window/run_button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ pub fn RunButton() -> impl IntoView {
with!(|program, witness_values, environment| {
let satisfied_program = match program.satisfy(witness_values) {
Ok(x) => x,
Err(error) => {
output.error.set(error);
Err(..) => {
output.error.set(
"Some witness names don't have a value; revise the \"Witness\" section"
.to_string(),
);
set_success(false);
return;
}
Expand Down

0 comments on commit 2e40644

Please sign in to comment.