mirror of https://github.com/lapce/lapce.git
Use proper flag bool for indicating that there shouldn't be a wasm file; Log errors if they occur (#1396)
This commit is contained in:
parent
8f1243ceef
commit
8bb3f1a24f
|
@ -198,8 +198,9 @@ pub fn install_volt(proxy: Arc<LapceProxy>, 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(),
|
||||
|
|
Loading…
Reference in New Issue