Skip to content

Commit

Permalink
repl: add spaces to load/save messages
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cjihrig authored and addaleax committed May 5, 2018
1 parent f74b344 commit 17a4421
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -1430,9 +1430,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();
}
Expand All @@ -1454,11 +1454,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();
}
Expand Down

0 comments on commit 17a4421

Please sign in to comment.