aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/errors.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-11 15:30:30 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-11 15:30:30 -0800
commit3733c096fc2ff837ad28ed487ef9cccff4d1e1ed (patch)
treefdde450c2e078612742b2f3e7afd641e8ddab6c0 /rust/src/errors.rs
parent011deddfd53abf0eb13fbe292c1a175e1d8fdf7e (diff)
downloadfatcat-3733c096fc2ff837ad28ed487ef9cccff4d1e1ed.tar.gz
fatcat-3733c096fc2ff837ad28ed487ef9cccff4d1e1ed.zip
refactor out OtherBadRequest (just use BadRequest)
Diffstat (limited to 'rust/src/errors.rs')
-rw-r--r--rust/src/errors.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/rust/src/errors.rs b/rust/src/errors.rs
index ec2b949b..08e79d51 100644
--- a/rust/src/errors.rs
+++ b/rust/src/errors.rs
@@ -93,11 +93,7 @@ pub enum FatcatError {
#[fail(display = "unexpected internal error: {}", _0)]
// Fmt, Io, Serde,
InternalError(String),
-
- // TODO: backwards compat; need to refactor out
- #[fail(display = "unexpected internal error: {}", _0)]
- OtherBadRequest(String), // NOTE: this enum is not exhaustive and shouldn't be matched over!
-}
+} // NOTE: this enum is not exhaustive and shouldn't be matched over!
impl Into<models::ErrorResponse> for FatcatError {
/// Format an error as an API response (ErrorResponse model, used by all HTTP 4xx and 5xx