Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add descriptive error message
  • Loading branch information
xqi-splunk committed Nov 10, 2025
commit 0849b6605064e18248133f460a7f2a4c1fa18b1b
14 changes: 13 additions & 1 deletion contentctl/objects/content_versioning_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,19 @@ def _query_cms_main(self, use_cache: bool = False) -> splunklib.Job:
f'app_name="{self.global_config.app.appid}" | fields _raw'
)
else:
raise Exception("Something went wrong with es version: {self.es_version}")
if self.kvstore_content_versioning:
raise Exception(
f"Unable to perform search to cms_content_lookup in ES version {self.es_version}"
)
elif self.datastore_content_versioning:
raise Exception(
f"Unable to perform search to cms_main index in ES version {self.es_version}"
)
else:
raise Exception(
f"Unable to determine content versioning method for ES version {self.es_version}. "
"Expected ES version >= 8.0.0."
)
self.logger.debug(
f"[{self.infrastructure.instance_name}] Query on cms_main: {query}"
)
Expand Down