Skip to content

Commit 5b4c99d

Browse files
committed
fix: pass actual error in the error object
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
1 parent 0ad3e79 commit 5b4c99d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

context_chat_backend/chain/ingest/injest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ async def __fetch_files_content(
168168
}
169169
)
170170
except ValidationError as e:
171-
logger.debug(
171+
logger.info(
172172
f'Found empty content for db id {db_id}, file id {file.file_id}, reference {file.reference}'
173173
f': {e}',
174174
)
175175
error_items[db_id] = IndexingError(
176-
error=str(result),
176+
error=f'Found empty content: {e}',
177177
retryable=False,
178178
)
179179
elif isinstance(result, IndexingException):

0 commit comments

Comments
 (0)