Skip to content

Commit

Permalink
readline: Remove XXX and output debuglog
Browse files Browse the repository at this point in the history
Remove a comment that has a word 'XXX'.
And add a line to output debuglog of error.

PR-URL: nodejs#4690
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
kohei-takata authored and Michael Scovetta committed Apr 2, 2016
1 parent 7e0b828 commit 2b90c3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/readline.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
const kHistorySize = 30;

const util = require('util');
const debug = util.debuglog('readline');
const internalUtil = require('internal/util');
const inherits = util.inherits;
const Buffer = require('buffer').Buffer;
Expand Down Expand Up @@ -380,7 +381,7 @@ Interface.prototype._tabComplete = function() {
self.resume();

if (err) {
// XXX Log it somewhere?
debug('tab completion error %j', err);
return;
}

Expand Down

0 comments on commit 2b90c3a

Please sign in to comment.