From 62a2db0f368a8b9a730c794e74c7d4db91201b0f Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Tue, 12 Apr 2022 16:46:51 -0700 Subject: [PATCH] fix: unsupported version error message having double "v"s --- __tests__/bin.test.js | 2 +- bin/rdme | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/bin.test.js b/__tests__/bin.test.js index 52f1f3703..6d48c8df9 100644 --- a/__tests__/bin.test.js +++ b/__tests__/bin.test.js @@ -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(); }); diff --git a/bin/rdme b/bin/rdme index 7e12550c7..1322fb4a8 100755 --- a/bin/rdme +++ b/bin/rdme @@ -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); }