diff --git a/faucet/src/faucet.rs b/faucet/src/faucet.rs index 74f7a740..4d0574d8 100644 --- a/faucet/src/faucet.rs +++ b/faucet/src/faucet.rs @@ -521,7 +521,14 @@ async fn request_fee_assets( ) -> Result { check_service_available(req.state()).await?; let pub_key: UserPubKey = net::server::request_body(&mut req).await?; - response(&req, &req.state().queue.push(pub_key).await?) + response( + &req, + &req.state() + .queue + .push(pub_key) + .await + .map_err(faucet_server_error)?, + ) } async fn worker(id: usize, mut state: FaucetState) {