This commit is contained in:
@@ -13,7 +13,7 @@ pub async fn serve_file(filepath: &str, state: &AppState) -> Result<HttpResponse
|
||||
// Проверяем наличие файла в Storj S3
|
||||
let exists = check_file_exists(&state.storj_client, &state.storj_bucket, &filepath).await?;
|
||||
if !exists {
|
||||
return Err(ErrorInternalServerError("File not found in Storj".to_string()));
|
||||
return Err(ErrorInternalServerError(format!("File {} not found in Storj", filepath)));
|
||||
}
|
||||
|
||||
// Получаем объект из Storj S3
|
||||
|
Reference in New Issue
Block a user