Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f2aca74

Browse filesBrowse files
cjihrigMylesBorins
authored andcommitted
repl: add spaces to load/save messages
PR-URL: #20536 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 27921e2 commit f2aca74
Copy full SHA for f2aca74

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎lib/repl.js‎

Copy file name to clipboardExpand all lines: lib/repl.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,9 +1429,9 @@ function defineDefaultCommands(repl) {
14291429
action: function(file) {
14301430
try {
14311431
fs.writeFileSync(file, this.lines.join('\n') + '\n');
1432-
this.outputStream.write('Session saved to:' + file + '\n');
1432+
this.outputStream.write('Session saved to: ' + file + '\n');
14331433
} catch (e) {
1434-
this.outputStream.write('Failed to save:' + file + '\n');
1434+
this.outputStream.write('Failed to save: ' + file + '\n');
14351435
}
14361436
this.displayPrompt();
14371437
}
@@ -1453,11 +1453,11 @@ function defineDefaultCommands(repl) {
14531453
_turnOffEditorMode(this);
14541454
this.write('\n');
14551455
} else {
1456-
this.outputStream.write('Failed to load:' + file +
1456+
this.outputStream.write('Failed to load: ' + file +
14571457
' is not a valid file\n');
14581458
}
14591459
} catch (e) {
1460-
this.outputStream.write('Failed to load:' + file + '\n');
1460+
this.outputStream.write('Failed to load: ' + file + '\n');
14611461
}
14621462
this.displayPrompt();
14631463
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.