Skip to content

Commit f2aca74

Browse files
cjihrigMylesBorins
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 27921e2 commit f2aca74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/repl.js

+4-4
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)