fix: leaner error handling by boxing large variants

This commit is contained in:
Per Stark
2026-06-06 07:59:57 +02:00
parent 4e20da538d
commit ac0d34bfbd
12 changed files with 238 additions and 83 deletions
@@ -77,7 +77,7 @@ pub async fn extract_text_from_file(
let file_bytes = storage
.get(&file_info.path)
.await
.map_err(AppError::Storage)?;
.map_err(AppError::from)?;
let local_path = resolve_existing_local_path(storage, &file_info.path).await;
match file_info.mime_type.as_str() {