Set title on unacceptable merch type error

This commit is contained in:
Tyler Hallada 2021-02-28 18:48:14 -05:00
parent 6b07ec7d07
commit 964ab26007

View File

@ -139,6 +139,7 @@ pub async fn create(
{ {
return Err(reject::custom( return Err(reject::custom(
HttpApiProblem::with_title_and_type_from_status(StatusCode::BAD_REQUEST) HttpApiProblem::with_title_and_type_from_status(StatusCode::BAD_REQUEST)
.set_title("Unacceptable Merchandise Type")
.set_detail("Shop does not accept that kind of merchandise"), .set_detail("Shop does not accept that kind of merchandise"),
)); ));
} }