From 28bef8fe94fd25373ef70424cddc7fba6e9b3ee5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 13 Jul 2021 15:29:33 +0100 Subject: [PATCH] errors: hand, deck: Use BadUiOperation for confusing conflicts Signed-off-by: Ian Jackson --- src/deck.rs | 2 +- src/hand.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/deck.rs b/src/deck.rs index 48bbcbed..0e12afb5 100644 --- a/src/deck.rs +++ b/src/deck.rs @@ -208,7 +208,7 @@ impl PieceTrait for Deck { let mut xupdates = vec![]; if new_state == old_state { - throw!(OE::PieceHeld); + throw!(Ia::BadUiOperation); } if old_state != Disabled { diff --git a/src/hand.rs b/src/hand.rs index dd675fef..693482e0 100644 --- a/src/hand.rs +++ b/src/hand.rs @@ -313,7 +313,7 @@ impl PieceTrait for Hand { } ("claim", true) | ("deactivate", false) => { - throw!(OE::PieceHeld); + throw!(Ia::BadUiOperation); } _ => { throw!(Ia::BadUiOperation); -- 2.30.2