Skip to content

Commit

Permalink
chore: show invalid url
Browse files Browse the repository at this point in the history
  • Loading branch information
ten3roberts committed Aug 8, 2023
1 parent 1bdf389 commit 69ebd91
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
2 changes: 1 addition & 1 deletion crates/network/src/web/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,5 +443,5 @@ async fn resolve_hosted_server(assets: &AssetCache, url: Url) -> anyhow::Result<
.context("Failed to get result for request")?;

Url::parse(&format!("https://{}", res.trim()))
.context("Expected a valid URL for host resolution")
.with_context(|| format!("Expected a valid URL for host resolution. Got: {res}"))
}
19 changes: 0 additions & 19 deletions web/recipes.json

This file was deleted.

0 comments on commit 69ebd91

Please sign in to comment.