mirror of
https://github.com/modrinth/code.git
synced 2026-08-28 10:34:53 +00:00
Use AWS SDK (#5959)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use std::error::Error;
|
||||
use std::str::FromStr;
|
||||
|
||||
use async_trait::async_trait;
|
||||
@@ -13,7 +14,7 @@ pub use s3_host::{S3BucketConfig, S3Host};
|
||||
#[derive(Error, Debug)]
|
||||
pub enum FileHostingError {
|
||||
#[error("S3 error when {0}: {1}")]
|
||||
S3Error(&'static str, s3::error::S3Error),
|
||||
S3Error(&'static str, #[source] Box<dyn Error + Send + Sync>),
|
||||
#[error("File system error in file hosting: {0}")]
|
||||
FileSystemError(#[from] std::io::Error),
|
||||
#[error("Invalid Filename")]
|
||||
|
||||
Reference in New Issue
Block a user