diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-07-21 12:15:29 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2023-07-21 12:15:29 +0200 |
commit | e4f995b1f8e25ed6cddae2672ea3e79da80e55ee (patch) | |
tree | 4f8f1162c0b4dda9cdefce22aa07ba82a09aa133 /src-tauri | |
parent | 448c6f343984b48b3ba7e1b9faaab54651b758f9 (diff) | |
download | FlightCore-e4f995b1f8e25ed6cddae2672ea3e79da80e55ee.tar.gz FlightCore-e4f995b1f8e25ed6cddae2672ea3e79da80e55ee.zip |
docs: Add comment explaining why we skip a folder
if parsing folder name to Thunderstore mod string failed.
Diffstat (limited to 'src-tauri')
-rw-r--r-- | src-tauri/src/mod_management/mod.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src-tauri/src/mod_management/mod.rs b/src-tauri/src/mod_management/mod.rs index 51115b16..c049fe07 100644 --- a/src-tauri/src/mod_management/mod.rs +++ b/src-tauri/src/mod_management/mod.rs @@ -444,6 +444,10 @@ fn delete_older_versions( let ts_mod_string_from_folder: ParsedThunderstoreModString = match folder_name.parse() { Ok(res) => res, Err(err) => { + // Failed parsing folder name as Thunderstore mod string + // This means it doesn't follow the `AUTHOR-MOD-VERSION` naming structure + // This folder could've been manually created by the user or another application + // As parsing failed we cannot determine the Thunderstore package it is part of hence we skip it log::warn!("{err}"); continue; } |