Skip to content

Commit

Permalink
fix: update exception error
Browse files Browse the repository at this point in the history
  • Loading branch information
jaluma committed Jul 31, 2024
1 parent cbddc54 commit b927165
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/ingest_folder.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def __init__(self, ingest_service: IngestService, setting: Settings) -> None:

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:
Expand Down

0 comments on commit b927165

Please sign in to comment.