logdebug,more
All checks were successful
deploy / deploy (push) Successful in 1m3s

This commit is contained in:
2024-10-22 14:34:29 +03:00
parent 705f4c55d0
commit 97911e034a
2 changed files with 3 additions and 1 deletions

View File

@@ -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