aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/api_wrappers.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-08-31 14:43:58 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-08-31 14:43:58 -0700
commit0053d133f8ff96aa4dedc1ff7e2754812ddfc79a (patch)
treecd051d1886646d0e2a444fe20ce89e10bba1c5a4 /rust/src/api_wrappers.rs
parente53215bc0c0126b624bf92df52a897a4603e044b (diff)
downloadfatcat-0053d133f8ff96aa4dedc1ff7e2754812ddfc79a.tar.gz
fatcat-0053d133f8ff96aa4dedc1ff7e2754812ddfc79a.zip
correct EditgroupAlreadyAccepted response
Diffstat (limited to 'rust/src/api_wrappers.rs')
-rw-r--r--rust/src/api_wrappers.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/src/api_wrappers.rs b/rust/src/api_wrappers.rs
index 95336d3f..403c7caf 100644
--- a/rust/src/api_wrappers.rs
+++ b/rust/src/api_wrappers.rs
@@ -308,6 +308,11 @@ impl Api for Server {
message: format!("No such editgroup: {}", id),
})
}
+ Err(Error(ErrorKind::EditgroupAlreadyAccepted(e), _)) => {
+ AcceptEditgroupResponse::BadRequest(ErrorResponse {
+ message: ErrorKind::EditgroupAlreadyAccepted(e).to_string(),
+ })
+ }
Err(e) => AcceptEditgroupResponse::GenericError(ErrorResponse {
message: e.to_string(),
}),