Skip to content

Commit a854ec6

Browse files
committed
readline: Remove XXX and output debuglog
Remove a comment that has a word 'XXX'. And add a line to output debuglog of error.
1 parent 265e2f5 commit a854ec6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/readline.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
const kHistorySize = 30;
1010

1111
const util = require('util');
12+
const debug = util.debuglog('readline');
1213
const internalUtil = require('internal/util');
1314
const inherits = util.inherits;
1415
const Buffer = require('buffer').Buffer;
@@ -380,7 +381,7 @@ Interface.prototype._tabComplete = function() {
380381
self.resume();
381382

382383
if (err) {
383-
// XXX Log it somewhere?
384+
debug('tab completion error %j', err);
384385
return;
385386
}
386387

0 commit comments

Comments
 (0)