[ML] Capitalize first letter in error message

Original commit: elastic/x-pack-elasticsearch@7062851357
This commit is contained in:
Dimitrios Athanasiou 2018-01-16 11:50:18 +00:00
parent 2350b85507
commit 0b8723015f
2 changed files with 2 additions and 2 deletions

View File

@ -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");
}
}

View File

@ -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: >