fix: improve time compare range error (#11252)

This commit is contained in:
Erik Ritter 2020-10-13 16:00:39 -07:00 committed by GitHub
parent 8676c3ebd6
commit 16f7b2b525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1405,8 +1405,8 @@ class NVD3TimeSeriesViz(NVD3Viz):
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

View File

@ -1275,8 +1275,8 @@ class NVD3TimeSeriesViz(NVD3Viz):
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