mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Use the constant placeholders for ".gemini/settings.json" in gemini.tsx (#2860)
This commit is contained in:
committed by
GitHub
parent
58b14b7ccf
commit
fe125d59b9
@@ -18,6 +18,7 @@ import {
|
|||||||
LoadedSettings,
|
LoadedSettings,
|
||||||
loadSettings,
|
loadSettings,
|
||||||
SettingScope,
|
SettingScope,
|
||||||
|
USER_SETTINGS_PATH,
|
||||||
} from './config/settings.js';
|
} from './config/settings.js';
|
||||||
import { themeManager } from './ui/themes/theme-manager.js';
|
import { themeManager } from './ui/themes/theme-manager.js';
|
||||||
import { getStartupWarnings } from './utils/startupWarnings.js';
|
import { getStartupWarnings } from './utils/startupWarnings.js';
|
||||||
@@ -279,7 +280,7 @@ async function validateNonInterActiveAuth(
|
|||||||
// still expect that exists
|
// still expect that exists
|
||||||
if (!selectedAuthType && !process.env.GEMINI_API_KEY) {
|
if (!selectedAuthType && !process.env.GEMINI_API_KEY) {
|
||||||
console.error(
|
console.error(
|
||||||
'Please set an Auth method in your .gemini/settings.json OR specify GEMINI_API_KEY env variable file before running',
|
`Please set an Auth method in your ${USER_SETTINGS_PATH} OR specify GEMINI_API_KEY env variable file before running`,
|
||||||
);
|
);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user