Skip to content

Commit

Permalink
no panic pls
Browse files Browse the repository at this point in the history
  • Loading branch information
brokad committed Nov 21, 2022
1 parent f307586 commit 9b420f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gateway/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,10 @@ impl Service {
.values()
.next()
.ok_or_else(|| ProjectError::internal("project was not linked to a network"))?;
let target = safe_unwrap!(network.ip_address).parse().unwrap();

let target = safe_unwrap!(network.ip_address)
.parse()
.map_err(|_| ProjectError::internal("project did not join the network"))?;

Ok(Self {
name: resource_name,
Expand Down

0 comments on commit 9b420f7

Please sign in to comment.