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

@@ -158,7 +158,7 @@ class GeminiAgent {
);
isAuthenticated = true;
} catch (e) {
console.error(`Authentication failed: ${e}`);
debugLogger.error(`Authentication failed: ${e}`);
}
}
@@ -660,7 +660,7 @@ class Session {
);
}
} catch (globError) {
console.error(
debugLogger.error(
`Error during glob search for ${pathName}: ${getErrorMessage(globError)}`,
);
}
@@ -670,7 +670,7 @@ class Session {
);
}
} else {
console.error(
debugLogger.error(
`Error stating path ${pathName}. Path ${pathName} will be skipped.`,
);
}