add helpful message for obscure cargo failures (#3380)
This commit is contained in:
1 parent
94b86477b5
commit
040dc54200
2 files changed
+2
-4
No files matched your search
@@ -210,7 +210,7 @@ impl BuildRequest {
|
|||||||
Message::BuildFinished(finished) => {
|
Message::BuildFinished(finished) => {
|
||||||
if !finished.success {
|
if !finished.success {
|
||||||
return Err(anyhow::anyhow!(
|
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());
|
.into());
|
||||||
}
|
}
|
||||||
@@ -220,7 +220,7 @@ impl BuildRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if output_location.is_none() {
|
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")?;
|
let out_location = output_location.context("Build did not return an executable")?;
|
||||||
|
|||||||
@@ -72,8 +72,6 @@ where
|
|||||||
// If this is the first run and we are on the web client, the data might be cached
|
// If this is the first run and we are on the web client, the data might be cached
|
||||||
#[cfg(feature = "web")]
|
#[cfg(feature = "web")]
|
||||||
let initial_web_result = use_hook(|| {
|
let initial_web_result = use_hook(|| {
|
||||||
tracing::info!("First run of use_server_future");
|
|
||||||
|
|
||||||
std::rc::Rc::new(std::cell::RefCell::new(Some(
|
std::rc::Rc::new(std::cell::RefCell::new(Some(
|
||||||
dioxus_web::take_server_data::<T>(),
|
dioxus_web::take_server_data::<T>(),
|
||||||
)))
|
)))
|
||||||
|
|||||||
Reference in new issue
Block a user