Improved error message when failing to parse ports
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 5m28s

This commit is contained in:
Dreaded_X 2025-04-17 15:04:53 +02:00
parent 6d70187560
commit 13f27ef878
Signed by: Dreaded_X
GPG Key ID: 5A0CBFE3C3377FAA

View File

@ -45,10 +45,10 @@ async fn main() -> color_eyre::Result<()> {
};
let http_port = std::env::var("HTTP_PORT")
.map(|port| port.parse())
.map(|port| port.parse().wrap_err_with(|| format!("HTTP_PORT={port}")))
.unwrap_or(Ok(3000))?;
let ssh_port = std::env::var("SSH_PORT")
.map(|port| port.parse())
.map(|port| port.parse().wrap_err_with(|| format!("SSH_PORT={port}")))
.unwrap_or(Ok(2222))?;
let domain =