From: Ian Jackson Date: Tue, 13 Jul 2021 14:27:22 +0000 (+0100) Subject: errors: Abolish now-unused Fatal::PieceImmoveable X-Git-Tag: otter-0.7.2~118 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cf3d0952fd52f227f256ef265ea60ccb353996ff;p=otter.git errors: Abolish now-unused Fatal::PieceImmoveable Signed-off-by: Ian Jackson --- diff --git a/daemon/api.rs b/daemon/api.rs index 3fc6c348..65ca3a55 100644 --- a/daemon/api.rs +++ b/daemon/api.rs @@ -76,7 +76,7 @@ impl From<&FatalErrorResponse> for rocket::http::Status { ServerFailure(_) => Status::InternalServerError, NoClient | NoPlayer(_) | GameBeingDestroyed(_) => Status::NotFound, - OE::PieceHeld | OE::PieceImmoveable | + OE::PieceHeld | BadJSON(_) => Status::BadRequest, } diff --git a/src/error.rs b/src/error.rs index 5f0d73d0..cee5b7cf 100644 --- a/src/error.rs +++ b/src/error.rs @@ -18,8 +18,6 @@ pub enum Fatal { // Includes _bogus_ client updates, see PROTOCOL.md BadJSON(serde_json::Error), #[error("referenced piece is gone (maybe race)")] PieceHeld, // xxx should be _inapplicable_ - #[error("improper UI operation")] - PieceImmoveable, // xxx should be _inapplicable_ } #[derive(Error,Debug)]