[ML] Capitalize first letter in error message
Original commit: elastic/x-pack-elasticsearch@7062851357
This commit is contained in:
parent
2350b85507
commit
0b8723015f
|
@ -84,7 +84,7 @@ public class PostCalendarEventsAction extends Action<PostCalendarEventsAction.Re
|
|||
this.scheduledEvents = ExceptionsHelper.requireNonNull(scheduledEvents, EVENTS.getPreferredName());
|
||||
|
||||
if (scheduledEvents.isEmpty()) {
|
||||
throw ExceptionsHelper.badRequestException("at least 1 event is required");
|
||||
throw ExceptionsHelper.badRequestException("At least 1 event is required");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -596,7 +596,7 @@
|
|||
"Test post calendar events given empty events":
|
||||
|
||||
- do:
|
||||
catch: /at least 1 event is required/
|
||||
catch: /At least 1 event is required/
|
||||
xpack.ml.post_calendar_events:
|
||||
calendar_id: "foo"
|
||||
body: >
|
||||
|
|
Loading…
Reference in New Issue