From 8bb3f1a24f6cadc174b78d4aef13d8e7ce33a995 Mon Sep 17 00:00:00 2001 From: MinusGix Date: Thu, 29 Sep 2022 13:17:02 -0500 Subject: [PATCH] Use proper flag bool for indicating that there shouldn't be a wasm file; Log errors if they occur (#1396) --- lapce-data/src/plugin.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lapce-data/src/plugin.rs b/lapce-data/src/plugin.rs index 10c2e9bf..2fb2e41f 100644 --- a/lapce-data/src/plugin.rs +++ b/lapce-data/src/plugin.rs @@ -198,8 +198,9 @@ pub fn install_volt(proxy: Arc, volt: VoltInfo) -> Result<()> { } else { std::thread::spawn(move || -> Result<()> { let download_volt_result = - download_volt(volt, true, &meta, &meta_str); - if download_volt_result.is_err() { + download_volt(volt, false, &meta, &meta_str); + if let Err(err) = download_volt_result { + log::warn!("download_volt err: {err:?}"); proxy.core_rpc.volt_installing( meta.clone(), "Could not download Volt".to_string(),