Handle portal endpoint network error

This commit is contained in:
Kevin Yue committed 2024-03-29 01:57:53 -04:00
1 parent 187ca778f2
commit 79e0f0c7c1
6 files changed
+23 -7

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ pub async fn gateway_login(gateway: &str, cred: &Credential, gp_params: &GpParam
.form(&params)
.send()
.await
.map_err(|e| anyhow::anyhow!(PortalError::GatewayError(e.to_string())))?;
.map_err(|e| anyhow::anyhow!(PortalError::NetworkError(e.to_string())))?;
let status = res.status();