extract console error to util func (#11675)

This commit is contained in:
Abhi
2025-10-22 16:09:10 -04:00
committed by GitHub
parent a7faa2080f
commit b40f67b76a
9 changed files with 19 additions and 63 deletions

View File

@@ -21,6 +21,7 @@ import {
MINIMUM_MAX_HEIGHT,
} from '../components/shared/MaxSizedBox.js';
import type { LoadedSettings } from '../../config/settings.js';
import { debugLogger } from '@google/gemini-cli-core';
// Configure theming and parsing utilities.
const lowlight = createLowlight(common);
@@ -191,7 +192,7 @@ export function colorizeCode(
</MaxSizedBox>
);
} catch (error) {
console.error(
debugLogger.warn(
`[colorizeCode] Error highlighting code for language "${language}":`,
error,
);