Skip to content

Commit

Permalink
repl: use _Node.js_ in user-facing REPL text
Browse files Browse the repository at this point in the history
We use _node (REPL)_ in one place and _Node.js (REPL)_ in another place
in error messages in repl.js. Use _Node.js_ in both places.

PR-URL: #34644
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
Trott authored and codebytere committed Aug 11, 2020
1 parent 7887ce2 commit 0c4226e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ function REPLServer(prompt,

if (e && !self[kBufferedCommandSymbol] && cmd.trim().startsWith('npm ')) {
self.output.write('npm should be run outside of the ' +
'node REPL, in your normal shell.\n' +
'Node.js REPL, in your normal shell.\n' +
'(Press Control-D to exit.)\n');
self.displayPrompt();
return;
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ const errorTests = [
{
send: 'npm install foobar',
expect: [
'npm should be run outside of the node REPL, in your normal shell.',
'npm should be run outside of the Node.js REPL, in your normal shell.',
'(Press Control-D to exit.)'
]
},
Expand Down

0 comments on commit 0c4226e

Please sign in to comment.