Skip to content

Commit 17a4421

Browse files
cjihrigaddaleax
authored andcommitted
repl: add spaces to load/save messages
PR-URL: #20536 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent f74b344 commit 17a4421

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/repl.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,9 +1430,9 @@ function defineDefaultCommands(repl) {
14301430
action: function(file) {
14311431
try {
14321432
fs.writeFileSync(file, this.lines.join('\n') + '\n');
1433-
this.outputStream.write('Session saved to:' + file + '\n');
1433+
this.outputStream.write('Session saved to: ' + file + '\n');
14341434
} catch (e) {
1435-
this.outputStream.write('Failed to save:' + file + '\n');
1435+
this.outputStream.write('Failed to save: ' + file + '\n');
14361436
}
14371437
this.displayPrompt();
14381438
}
@@ -1454,11 +1454,11 @@ function defineDefaultCommands(repl) {
14541454
_turnOffEditorMode(this);
14551455
this.write('\n');
14561456
} else {
1457-
this.outputStream.write('Failed to load:' + file +
1457+
this.outputStream.write('Failed to load: ' + file +
14581458
' is not a valid file\n');
14591459
}
14601460
} catch (e) {
1461-
this.outputStream.write('Failed to load:' + file + '\n');
1461+
this.outputStream.write('Failed to load: ' + file + '\n');
14621462
}
14631463
this.displayPrompt();
14641464
}

0 commit comments

Comments
 (0)