Skip to content

Commit

Permalink
fix: unsupported version error message having double "v"s (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion authored Apr 13, 2022
1 parent 6ea59ea commit c422efb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __tests__/bin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('bin', () => {
await new Promise(done => {
exec(`node ${__dirname}/../bin/rdme`, (error, stdout, stderr) => {
expect(stderr).toContain(
`We're sorry, this release of rdme does not support Node.js v${process.version}. We support the following versions: ${pkg.engines.node}`
`We're sorry, this release of rdme does not support Node.js ${process.version}. We support the following versions: ${pkg.engines.node}`
);
done();
});
Expand Down
2 changes: 1 addition & 1 deletion bin/rdme
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ updateNotifier({ pkg }).notify();
* stop if we're being run with any Node version that we don't explicitly support.
*/
if (!isSupportedNodeVersion(process.version)) {
const message = `We're sorry, this release of rdme does not support Node.js v${process.version}. We support the following versions: ${pkg.engines.node}`;
const message = `We're sorry, this release of rdme does not support Node.js ${process.version}. We support the following versions: ${pkg.engines.node}`;
console.error(chalk.red(`\n${message}\n`));
process.exit(1);
}
Expand Down

0 comments on commit c422efb

Please sign in to comment.