Use the constant placeholders for ".gemini/settings.json" in gemini.tsx (#2860)
This commit is contained in:
parent
58b14b7ccf
commit
fe125d59b9
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue