We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d080024 commit e0e1a7eCopy full SHA for e0e1a7e
src-tauri/src/lib/idf_versions.rs
@@ -38,7 +38,14 @@ pub struct Releases {
38
39
// TODO: handle the possibility of multiple downloads
40
pub async fn get_idf_versions() -> Result<Releases, String> {
41
- Ok(download_idf_versions().await.unwrap())
+ match download_idf_versions().await {
42
+ Ok(versions) => Ok(versions),
43
+ Err(e) => {
44
+ let err_msg = format!("Failed to download IDF versions.json file: {}", e);
45
+ error!("{}", err_msg);
46
+ Err(err_msg)
47
+ }
48
49
}
50
51
/// Retrieves the available IDF targets from the official website.
0 commit comments