Skip to content

Commit

Permalink
fix #1161 (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottinet authored and Aschen committed Jul 24, 2018
1 parent 11da061 commit 58d0acd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/services/elasticsearch.js
Expand Up @@ -81,7 +81,7 @@ class ElasticSearch extends Service {
this.esVersion = response.version;

if (this.esVersion && !semver.satisfies(this.esVersion.number, '5.x')) {
throw new KuzzleInternalError(`Your elasticsearch version is ${this.esVersion.number}; Only elasticsearch version 5.0.0 and above are supported.`);
throw new KuzzleInternalError(`Your elasticsearch version is ${this.esVersion.number}; Only elasticsearch version 5 is currently supported.`);
}

return this;
Expand Down
2 changes: 1 addition & 1 deletion lib/services/internalEngine/index.js
Expand Up @@ -118,7 +118,7 @@ class InternalEngine {
this.esVersion = response.version;

if (this.esVersion && !semver.satisfies(this.esVersion.number, '5.x')) {
throw new KuzzleInternalError(`Your elasticsearch version is ${this.esVersion.number}; Only elasticsearch version 5.0.0 and above are supported.`);
throw new KuzzleInternalError(`Your elasticsearch version is ${this.esVersion.number}; Only elasticsearch version 5 is currently supported.`);
}
}))
.then(() => this.kuzzle.indexCache.initInternal(this))
Expand Down

0 comments on commit 58d0acd

Please sign in to comment.