Skip to content

Commit

Permalink
add helpful message for obscure cargo failures (#3380)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelleyrtp authored Dec 17, 2024
1 parent 94b8647 commit 040dc54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/build/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand All @@ -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")?;
Expand Down
2 changes: 0 additions & 2 deletions packages/fullstack/src/hooks/server_future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>(),
)))
Expand Down

0 comments on commit 040dc54

Please sign in to comment.