From ad63d350d4a4fe51547bf36a529631a746f3b1f8 Mon Sep 17 00:00:00 2001 From: Kohei TAKATA Date: Fri, 15 Jan 2016 12:49:24 +0900 Subject: [PATCH] readline: Remove XXX and output debuglog Remove a comment that has a word 'XXX'. And add a line to output debuglog of error. PR-URL: https://github.com/nodejs/node/pull/4690 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- lib/readline.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/readline.js b/lib/readline.js index 5bea6afb950ee0..065cc62807c689 100644 --- a/lib/readline.js +++ b/lib/readline.js @@ -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; @@ -380,7 +381,7 @@ Interface.prototype._tabComplete = function() { self.resume(); if (err) { - // XXX Log it somewhere? + debug('tab completion error %j', err); return; }