fix: do it correctly

This commit is contained in:
Miles Murgaw committed 2023-07-14 20:41:27 -04:00
1 parent 41fd7a1040
commit d710b92696
7 files changed
+28 -21

No files matched your search

+4 -4
View File
@@ -13,7 +13,7 @@ async fn main() -> anyhow::Result<()> {
set_up_logging();
let _dioxus_config = DioxusConfig::load()
let _dioxus_config = DioxusConfig::load(args.bin.clone())
.map_err(|e| anyhow!("Failed to load `Dioxus.toml` because: {e}"))?
.unwrap_or_else(|| {
log::warn!("You appear to be creating a Dioxus project from scratch; we will use the default config");
@@ -30,15 +30,15 @@ async fn main() -> anyhow::Result<()> {
.map_err(|e| anyhow!("🚫 Translation of HTML into RSX failed: {}", e)),
Build(opts) => opts
.build()
.build(args.bin.clone())
.map_err(|e| anyhow!("🚫 Building project failed: {}", e)),
Clean(opts) => opts
.clean()
.clean(args.bin.clone())
.map_err(|e| anyhow!("🚫 Cleaning project failed: {}", e)),
Serve(opts) => opts
.serve()
.serve(args.bin.clone())
.await
.map_err(|e| anyhow!("🚫 Serving project failed: {}", e)),