Skip to content

Commit

Permalink
Merge pull request #1501 from tgodzik/add-more-info
Browse files Browse the repository at this point in the history
improvement: Point to the java setting in error message
  • Loading branch information
tgodzik authored May 14, 2024
2 parents a082109 + eb10d08 commit 1562434
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/metals-languageclient/src/setupCoursier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ export async function setupCoursier(
if (javaHome && coursier) return { coursier, javaHome };
else
throw Error(
"Cannot resolve Java home or coursier, please provide at least JAVA_HOME."
`Cannot resolve Java home or coursier, JAVA_HOME should exist with a version of at least ${javaVersion}.` +
`Alternatively, you can reduce the requirement using "metals.javaVersion" setting.`
);
}

Expand Down

0 comments on commit 1562434

Please sign in to comment.