Skip to content

Commit

Permalink
Change run-node error message when Node.js is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
vdiez committed Aug 25, 2023
1 parent 74a17ae commit 2014f18
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,11 @@ private String getVersion(String nodeExecutable) throws NodeCommandException {
emptyList(),
output::append,
LOG::error,
Map.of()
//Avoid default error message from run-node: https://github.com/sindresorhus/run-node#customizable-cache-path-and-error-message
Map.of(
"RUN_NODE_ERROR_MSG",
"Couldn't find the Node.js binary. Ensure you have Node.js installed."
)
);
nodeCommand.start();
int exitValue = nodeCommand.waitFor();
Expand Down

0 comments on commit 2014f18

Please sign in to comment.