mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
fix: cli spam when build (#2300)
This commit is contained in:
parent
29f69fa145
commit
05b662ee2d
1 changed files with 3 additions and 3 deletions
|
@ -528,7 +528,7 @@ fn prettier_build(cmd: subprocess::Exec) -> anyhow::Result<CargoBuildResult> {
|
|||
}
|
||||
}
|
||||
Message::CompilerArtifact(artifact) => {
|
||||
pb.set_message(format!("⚙️ Compiling {} ", artifact.package_id));
|
||||
pb.set_message(format!("⚙ Compiling {} ", artifact.package_id));
|
||||
pb.tick();
|
||||
if let Some(executable) = artifact.executable {
|
||||
output_location = Some(executable.into());
|
||||
|
@ -539,9 +539,9 @@ fn prettier_build(cmd: subprocess::Exec) -> anyhow::Result<CargoBuildResult> {
|
|||
}
|
||||
Message::BuildFinished(finished) => {
|
||||
if finished.success {
|
||||
tracing::info!("👑 Build done.");
|
||||
pb.finish_with_message("👑 Build done.");
|
||||
} else {
|
||||
tracing::info!("❌ Build failed.");
|
||||
pb.finish_with_message("❌ Build failed.");
|
||||
return Err(anyhow::anyhow!("Build failed"));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue