Skip to content

Commit

Permalink
Improve error message for wrong java home path
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Ponzi <me@fponzi.me>
  • Loading branch information
FedericoPonzi committed Dec 23, 2024
1 parent 0791a77 commit 539ccf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tla2tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function buildJavaPath(): string {
const homeUri = pathToUri(javaHome);
javaPath = homeUri.fsPath + path.sep + 'bin' + path.sep + javaCmd;
if (!fs.existsSync(javaPath)) {
throw new ToolingError('Java executable not found. Check the Java Home setting.');
throw new ToolingError(`Java executable not found in "${javaPath}". Check the Java Home setting.`);
}
}
return javaPath;
Expand Down

0 comments on commit 539ccf1

Please sign in to comment.