From c50d661d7daa68b8fb0e1b4243c7113094a02446 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Wed, 25 Feb 2026 21:00:55 +0200 Subject: [PATCH] fix wrong status key in adapter error reporting --- .../app/indexing_pipeline/adapters/file_upload_adapter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surfsense_backend/app/indexing_pipeline/adapters/file_upload_adapter.py b/surfsense_backend/app/indexing_pipeline/adapters/file_upload_adapter.py index f544c5ab5..65503c60e 100644 --- a/surfsense_backend/app/indexing_pipeline/adapters/file_upload_adapter.py +++ b/surfsense_backend/app/indexing_pipeline/adapters/file_upload_adapter.py @@ -40,7 +40,7 @@ async def index_uploaded_file( indexed = await service.index(documents[0], connector_doc, llm) if not DocumentStatus.is_state(indexed.status, DocumentStatus.READY): - raise RuntimeError(indexed.status.get("message", "Indexing failed")) + raise RuntimeError(indexed.status.get("reason", "Indexing failed")) indexed.content_needs_reindexing = False await session.commit()