mirror of
https://github.com/perstarkse/minne.git
synced 2026-11-13 11:03:29 +01:00
fix: leaner error handling by boxing large variants
This commit is contained in:
1 parent
20de557294
commit
93c65970f1
12 files changed
+238
-83
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user