feat: report more detailed err info (#1674)

This commit is contained in:
yetone
2025-03-22 15:25:38 +08:00
committed by GitHub
parent b59cbf4392
commit 5b4bb47d6f

View File

@@ -112,7 +112,7 @@ async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]: # noqa: ARG001
directory = uri_to_path(resource.uri)
if not directory.exists():
logger.error("Directory not found: %s", directory)
resource_service.update_resource_status(resource.uri, "error", "Directory not found")
resource_service.update_resource_status(resource.uri, "error", f"Directory not found: {directory}")
continue
# Start file system watcher