Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change message to suggest upgrading to LTS version and not mention minimum version #4611

Merged
merged 5 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ private void checkNodeCompatibility(String nodeExecutable) throws NodeCommandExc
if (!actualNodeVersion.isGreaterThanOrEqual(minNodeVersion)) {
throw new NodeCommandException(
String.format(
"Only Node.js v%s or later is supported, got %s.",
minNodeVersion,
"Unsupported Node.JS version detected %s. Please upgrade to latest Node.JS LTS version.",
saberduck marked this conversation as resolved.
Show resolved Hide resolved
actualNodeVersion
)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ void test_min_version() throws IOException {
builder().minNodeVersion(Version.create(99, 0)).pathResolver(getPathResolver()).build()
)
.isInstanceOf(NodeCommandException.class)
.hasMessageStartingWith("Only Node.js v99.0 or later is supported, got");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, this was future-proof

.hasMessageMatching(
"Unsupported Node.JS version detected .* Please upgrade to latest Node.JS LTS version."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

);
}

@Test
Expand Down
Loading