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:
MinusGix 2022-09-29 13:17:02 -05:00 committed by GitHub
parent 8f1243ceef
commit 8bb3f1a24f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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(),