From f2aca748a9eb9d8c62ea8324a358fa7fd41c70f0 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/20536 Reviewed-By: Michaƫl Zasso Reviewed-By: Vse Mozhet Byt Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat Reviewed-By: Anna Henningsen --- lib/repl.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/repl.js b/lib/repl.js index 2bef57fa100170..600816a6058fbc 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -1429,9 +1429,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(); } @@ -1453,11 +1453,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(); }