diff --git a/apps/auth-service/src/web/mod.rs b/apps/auth-service/src/web/mod.rs index 5ed06d77..209ee2b6 100644 --- a/apps/auth-service/src/web/mod.rs +++ b/apps/auth-service/src/web/mod.rs @@ -371,10 +371,7 @@ impl WebApplication { /// The page's query, as `T`. A malformed one is the request's fault. fn query(cx: &Cx) -> std::result::Result { - parse_query_params(cx).map_err(|error| { - OAuthCode::InvalidRequest - .reject_with(format!("the request is malformed: {error}"), error) - }) + parse_query_params(cx).map_err(|error| OAuthError::malformed("the request", error)) } /// The form posted to the page, as `T`. A malformed one is the request's fault.