From 69ebd91086da1ff8c0450ef37f8ab959f42d5cb1 Mon Sep 17 00:00:00 2001 From: Tei Leelo Roberts Date: Tue, 8 Aug 2023 14:29:58 +0200 Subject: [PATCH] chore: show invalid url --- crates/network/src/web/client.rs | 2 +- web/recipes.json | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 web/recipes.json diff --git a/crates/network/src/web/client.rs b/crates/network/src/web/client.rs index 56bb1eae0e..1e7b08d164 100644 --- a/crates/network/src/web/client.rs +++ b/crates/network/src/web/client.rs @@ -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}")) } diff --git a/web/recipes.json b/web/recipes.json deleted file mode 100644 index 021374471c..0000000000 --- a/web/recipes.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "check": { - "cmd": "cargo check" - }, - "test": { - "cmd": "cargo nextest run --workspace" - }, - "build": { - "cmd": "wasm-pack build client --dev", - "components": { - "qf": { - "compiler": "cargo" - } - } - }, - "check-tests": { - "cmd": "cargo check --workspace --tests --examples" - } -}