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 <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

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
@@ -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)