Improved error message when failing to parse ports
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 5m28s
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 5m28s
This commit is contained in:
parent
6d70187560
commit
13f27ef878
|
@ -45,10 +45,10 @@ async fn main() -> color_eyre::Result<()> {
|
||||||
};
|
};
|
||||||
|
|
||||||
let http_port = std::env::var("HTTP_PORT")
|
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))?;
|
.unwrap_or(Ok(3000))?;
|
||||||
let ssh_port = std::env::var("SSH_PORT")
|
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))?;
|
.unwrap_or(Ok(2222))?;
|
||||||
|
|
||||||
let domain =
|
let domain =
|
||||||
|
|
Loading…
Reference in New Issue
Block a user