Coverage for src/lilbee/data/ingest/errors.py: 100%
3 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-08-14 11:46 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-08-14 11:46 +0000
1"""How an ingest failure is recorded against the file that raised it."""
3from __future__ import annotations
6def error_reason(error: BaseException) -> str:
7 """The ``Type: message`` reason recorded for a failed file."""
8 return f"{type(error).__name__}: {error}"