diff --git a/lib/cli/commands/config.js b/lib/cli/commands/config.js index 46adb7330..cab82e6e2 100644 --- a/lib/cli/commands/config.js +++ b/lib/cli/commands/config.js @@ -35,7 +35,10 @@ exports.init = function (cli) { log.info('Displaying config settings'); var cfg = account.readConfig(); - + if (!log.format().json && Object.keys(cfg).length === 0) { + log.info('No config settings found'); + return; + } log.table(cfg, function (row, name) { row.cell('Setting', name); row.cell('Value', cfg[name]);