From edf350a00b03805388e3c34a5da9503d1fe905ba Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sat, 5 May 2018 03:42:21 -0400 Subject: [PATCH] repl: add spaces to load/save messages --- lib/repl.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/repl.js b/lib/repl.js index a7977dc72fb781..f59bdc5a64f27e 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -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(); } @@ -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(); }