aboutsummaryrefslogtreecommitdiff
path: root/src/checker_state.rs
diff options
context:
space:
mode:
authortslil <tslil@posteo.de>2026-04-27 11:52:05 +0100
committertslil <tslil@posteo.de>2026-04-27 11:58:47 +0100
commit47bb6052919a4266cf47f47c6e6d387baf6e39b0 (patch)
treeedfdf5ca685e5ddf7125797e78441ff99e7d12be /src/checker_state.rs
parentecfc21093f0cee7a0369c0bb0ac344368939d81f (diff)
report _which_ element does not belong to the correct set, at the bottom of the tree anyway
Diffstat (limited to 'src/checker_state.rs')
-rw-r--r--src/checker_state.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/checker_state.rs b/src/checker_state.rs
index 19a7c51..86f229e 100644
--- a/src/checker_state.rs
+++ b/src/checker_state.rs
@@ -13,8 +13,12 @@ pub enum CheckerError {
Rebinding(String),
#[display("The following functionality is unimplemented: {_0}")]
Unimplemented(String),
- #[display("Element claimed to belong to {claimed} but actually belongs to {real}")]
- WrongSetForElement { claimed: Set, real: Set },
+ #[display("Element {value} claimed to belong to {claimed} but actually belongs to {real}")]
+ WrongSetForElement {
+ value: ElementValue,
+ claimed: Set,
+ real: Set,
+ },
#[display("Element {element} does belong to set {claimed}: {reason}")]
ElementDoesNotBelong {
element: Element,