Working on upload images and tilemap
This commit is contained in:
@@ -114,7 +114,12 @@ impl From<redis::RedisError> for ServiceError {
|
||||
|
||||
impl From<s3::error::S3Error> for ServiceError {
|
||||
fn from(error: s3::error::S3Error) -> ServiceError {
|
||||
ServiceError::new(500, format!("Unknown s3 error: {}", error))
|
||||
match error {
|
||||
s3::error::S3Error::Http(code, message) => {
|
||||
ServiceError::new(code, message)
|
||||
},
|
||||
_ => ServiceError::new(500, format!("Unknown s3 error: {}", error))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user