From ad03e0021f00c8ada8ecc1cae0183ec796e191ae Mon Sep 17 00:00:00 2001 From: lovasoa Date: Thu, 30 May 2024 10:39:14 +0200 Subject: [PATCH] improve build script error messages --- build.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index 284eec3a..3271130c 100644 --- a/build.rs +++ b/build.rs @@ -96,8 +96,9 @@ async fn download_url_to_path(client: &awc::Client, url: &str, path: &Path) { let mut resp = client.get(url).send().await.unwrap_or_else(|err| { let path = make_url_path(url); panic!( - "We need to download external frontend dependencies to build the static frontend. \ - Could not download {url}. You can manually download the file and place it in {path:?}\ + "We need to download external frontend dependencies to build the static frontend. \n\ + Could not download static asset. You can manually download the file with: \n\ + curl {url:?} > {path:?} \n\ {err}" ) });