diff --git a/lib/commands/config.ts b/lib/commands/config.ts index 8689880fcd..a37506bf47 100644 --- a/lib/commands/config.ts +++ b/lib/commands/config.ts @@ -38,7 +38,7 @@ export class ConfigListCommand implements ICommand { .join("\n") ); } else { - return color.yellow(value.toString()); + return color.yellow(typeof value === 'undefined' ? 'undefined' : value.toString()); } } }