/**
 * Drain and display settings-file parse errors as yellow warnings.
 */
import chalk from 'chalk';
/** Print any accumulated settings parse errors (e.g. malformed JSON) and clear the error queue. */
export function reportSettingsErrors(settingsManager, context) {
    const errors = settingsManager.drainErrors();
    for (const { scope, error } of errors) {
        console.error(chalk.yellow(`Warning (${context}, ${scope} settings): ${error.message}`));
        if (error.stack) {
            console.error(chalk.dim(error.stack));
        }
    }
}
//# sourceMappingURL=report-settings-errors.js.map