From 040dc5420082136a9e90e0593e3117421a7f1f68 Mon Sep 17 00:00:00 2001 From: Jonathan Kelley Date: Tue, 17 Dec 2024 15:14:28 -0800 Subject: [PATCH] add helpful message for obscure cargo failures (#3380) --- packages/cli/src/build/request.rs | 4 ++-- packages/fullstack/src/hooks/server_future.rs | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/cli/src/build/request.rs b/packages/cli/src/build/request.rs index 77057953ee..7cd661e985 100644 --- a/packages/cli/src/build/request.rs +++ b/packages/cli/src/build/request.rs @@ -210,7 +210,7 @@ impl BuildRequest { Message::BuildFinished(finished) => { if !finished.success { return Err(anyhow::anyhow!( - "Cargo build failed, signaled by the compiler" + "Cargo build failed, signaled by the compiler. Toggle tracing mode (press `t`) for more information." ) .into()); } @@ -220,7 +220,7 @@ impl BuildRequest { } if output_location.is_none() { - tracing::error!("Cargo build failed - no output location"); + tracing::error!("Cargo build failed - no output location. Toggle tracing mode (press `t`) for more information."); } let out_location = output_location.context("Build did not return an executable")?; diff --git a/packages/fullstack/src/hooks/server_future.rs b/packages/fullstack/src/hooks/server_future.rs index bf6893cc99..d11b3c98b5 100644 --- a/packages/fullstack/src/hooks/server_future.rs +++ b/packages/fullstack/src/hooks/server_future.rs @@ -72,8 +72,6 @@ where // If this is the first run and we are on the web client, the data might be cached #[cfg(feature = "web")] let initial_web_result = use_hook(|| { - tracing::info!("First run of use_server_future"); - std::rc::Rc::new(std::cell::RefCell::new(Some( dioxus_web::take_server_data::(), )))