fixed duplicate error messages on installer failure and added new error type

This commit is contained in:
objz committed 2026-06-16 13:25:28 +02:00
1 parent 1fd1b4e09d
commit c5da2c7c99
12 files changed
+109 -81

No files matched your search

+2 -2
View File
@@ -6,7 +6,7 @@ use std::path::Path;
use async_trait::async_trait;
use super::{GameVersion, ModLoaderInstaller};
use super::{GameVersion, InstallError, ModLoaderInstaller};
use crate::instance::models::ModLoader;
use crate::net::{HttpClient, NetError, mojang};
@@ -45,7 +45,7 @@ impl ModLoaderInstaller for VanillaInstaller {
_loader_version: &str,
_instance_dir: &Path,
_meta_dir: &Path,
) -> Result<(), NetError> {
) -> Result<(), InstallError> {
Ok(())
}
}