fix: update exception error

This commit is contained in:
Javier Martinez 2024-07-31 13:45:34 +02:00
parent cbddc54dcd
commit b927165def
No known key found for this signature in database

View file

@ -26,7 +26,8 @@ class LocalIngestWorker:
def _validate_folder(self, folder_path: Path) -> None:
if not self.is_local_ingestion_enabled:
raise ValueError("Local ingestion is disabled")
raise ValueError("Local ingestion is disabled."
"You can enable it in settings `ingestion.enabled`")
# Allow all folders if wildcard is present
if "*" in self.allowed_local_folders: