From b927165defc7d93d9ea194d45716aa9f481e8dd9 Mon Sep 17 00:00:00 2001 From: Javier Martinez Date: Wed, 31 Jul 2024 13:45:34 +0200 Subject: [PATCH] fix: update exception error --- scripts/ingest_folder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/ingest_folder.py b/scripts/ingest_folder.py index c561bdf..dd37d93 100755 --- a/scripts/ingest_folder.py +++ b/scripts/ingest_folder.py @@ -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: