update FatalUntrustedWorkspaceError message to include doc link (#25874)

This commit is contained in:
Emily Hedlund
2026-04-23 16:26:29 -07:00
committed by GitHub
parent d4c5333dcf
commit 571ca5a555
2 changed files with 7 additions and 1 deletions
@@ -96,7 +96,9 @@ const folderTrustCheck: WarningCheck = {
if (isHeadlessMode()) {
throw new FatalUntrustedWorkspaceError(
'Gemini CLI is not running in a trusted directory. To proceed, either use `--skip-trust`, set the `GEMINI_CLI_TRUST_WORKSPACE=true` environment variable, or trust this directory in interactive mode.',
'Gemini CLI is not running in a trusted directory. To proceed, either use `--skip-trust`, ' +
'set the `GEMINI_CLI_TRUST_WORKSPACE=true` environment variable, or trust this directory in interactive mode. ' +
'For more details, see https://geminicli.com/docs/cli/trusted-folders/#headless-and-automated-environments',
);
}