Add mod URL download support

This commit is contained in:
Danielle Hutzley
2021-12-14 08:00:06 -08:00
parent fc076c2e54
commit c8c69b4425
2 changed files with 39 additions and 2 deletions

View File

@@ -59,6 +59,9 @@ pub enum ModpackError {
#[error("Error downloading file: {0}")]
FetchError(#[from] reqwest::Error),
#[error("Invalid modpack source: {0} (set the WHITELISTED_MODPACK_DOMAINS environment variable to override)")]
SourceWhitelistError(String),
}
type ModpackResult<T> = Result<T, ModpackError>;