mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-06 03:10:42 -07:00
extract console error to util func (#11675)
This commit is contained in:
@@ -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.`,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user