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(); }