mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
repl: add spaces to load/save messages
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
80bdff0086
commit
d3a219c6ec
1 file changed
+4
-4
+4
-4
@@ -1429,9 +1429,9 @@ function defineDefaultCommands(repl) {
|
||||
action: function(file) {
|
||||
try {
|
||||
fs.writeFileSync(file, this.lines.join('\n') + '\n');
|
||||
this.outputStream.write('Session saved to:' + file + '\n');
|
||||
this.outputStream.write('Session saved to: ' + file + '\n');
|
||||
} catch (e) {
|
||||
this.outputStream.write('Failed to save:' + file + '\n');
|
||||
this.outputStream.write('Failed to save: ' + file + '\n');
|
||||
}
|
||||
this.displayPrompt();
|
||||
}
|
||||
@@ -1453,11 +1453,11 @@ function defineDefaultCommands(repl) {
|
||||
_turnOffEditorMode(this);
|
||||
this.write('\n');
|
||||
} else {
|
||||
this.outputStream.write('Failed to load:' + file +
|
||||
this.outputStream.write('Failed to load: ' + file +
|
||||
' is not a valid file\n');
|
||||
}
|
||||
} catch (e) {
|
||||
this.outputStream.write('Failed to load:' + file + '\n');
|
||||
this.outputStream.write('Failed to load: ' + file + '\n');
|
||||
}
|
||||
this.displayPrompt();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user