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.
  • Loading branch information
Trott committed Aug 8, 2020
1 parent 614298d commit 1019bc9
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 @@ -790,7 +790,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 1019bc9

Please sign in to comment.