Skip to content

Commit 766188a

Browse files
committed
CMR-11452 - Small improvement to error message when after_date_time range is too large
1 parent 75525d9 commit 766188a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

bootstrap-app/src/cmr/bootstrap/api/messages.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
(defn after-date-time-window-exceeded
9999
[max-window-hours]
100100
(format (str "The requested time window exceeds the /bulk_index/after_date_time limit of %d hours. "
101-
"Please use a smaller date_time value so the range to now is within %d hours.")
101+
"Please use a later date_time value so the range to now is within %d hours.")
102102
max-window-hours
103103
max-window-hours))
104104

bootstrap-app/test/cmr/bootstrap/test/api/bulk_index_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
bootstrap-config/bulk-index-after-date-time-max-window-hours (constantly 3)]
198198
(is (= {:type :invalid-data
199199
:errors [(str "The requested time window exceeds the /bulk_index/after_date_time limit of 3 hours. "
200-
"Please use a smaller date_time value so the range to now is within 3 hours.")]}
200+
"Please use a later date_time value so the range to now is within 3 hours.")]}
201201
(service-error
202202
#(bulk-index/data-later-than-date-time
203203
context

0 commit comments

Comments
 (0)