diff --git a/superset/viz.py b/superset/viz.py index 8dabed663b4cc..1e67596bf2ed9 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -1405,8 +1405,8 @@ def run_extra_queries(self) -> None: if not query_object["from_dttm"] or not query_object["to_dttm"]: raise QueryObjectValidationError( _( - "`Since` and `Until` time bounds should be specified " - "when using the `Time Shift` feature." + "An enclosed time range (both start and end) must be specified " + "when using a Time Comparison." ) ) query_object["from_dttm"] -= delta diff --git a/superset/viz_sip38.py b/superset/viz_sip38.py index 5c9b6fb0bf212..d9f6f72dfc1d9 100644 --- a/superset/viz_sip38.py +++ b/superset/viz_sip38.py @@ -1275,8 +1275,8 @@ def run_extra_queries(self): if not query_object["from_dttm"] or not query_object["to_dttm"]: raise QueryObjectValidationError( _( - "`Since` and `Until` time bounds should be specified " - "when using the `Time Shift` feature." + "An enclosed time range (both start and end) must be specified " + "when using a Time Comparison." ) ) query_object["from_dttm"] -= delta