Переглянути джерело

add helpful message for obscure cargo failures (#3380)

Jonathan Kelley 6 місяців тому
батько
коміт
040dc54200

+ 2 - 2
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")?;

+ 0 - 2
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::<T>(),
         )))