Skip to content

Commit

Permalink
Fix typo in IllegalArgumentException (#3682)
Browse files Browse the repository at this point in the history
Co-authored-by: Crypt Keeper <64215+codefromthecrypt@users.noreply.github.com>
  • Loading branch information
c13 and codefromthecrypt authored Jan 10, 2024
1 parent e19058d commit 7aa3990
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2015-2023 The OpenZipkin Authors
* Copyright 2015-2024 The OpenZipkin Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -226,7 +226,7 @@ String autocompleteTemplate(ElasticsearchVersion version) {
IndexTemplates get(ElasticsearchVersion version) {
if (version.compareTo(V5_0) < 0 || version.compareTo(V9_0) >= 0) {
throw new IllegalArgumentException(
"Elasticsearch versions 5-7.x are supported, was: " + version);
"Elasticsearch versions 5-8.x are supported, was: " + version);
}
return IndexTemplates.newBuilder()
.version(version)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class VersionSpecificTemplatesTest {
/** Unsupported, but we should test that parsing works */
@Test void version2_unsupported() {
assertThatThrownBy(() -> storage.versionSpecificTemplates(V2_4))
.hasMessage("Elasticsearch versions 5-7.x are supported, was: 2.4");
.hasMessage("Elasticsearch versions 5-8.x are supported, was: 2.4");
}

@Test void version5() {
Expand Down

0 comments on commit 7aa3990

Please sign in to comment.