From 66f8ef123b9c8fbb9e838462a2aa8bf339fd384c Mon Sep 17 00:00:00 2001 From: Douwe Osinga Date: Tue, 5 Aug 2025 10:40:21 +0200 Subject: [PATCH] Update gemini error msg (#3847) Co-authored-by: Douwe Osinga --- crates/goose/src/providers/gemini_cli.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/crates/goose/src/providers/gemini_cli.rs b/crates/goose/src/providers/gemini_cli.rs index 17ebb7ba..afcdbdae 100644 --- a/crates/goose/src/providers/gemini_cli.rs +++ b/crates/goose/src/providers/gemini_cli.rs @@ -176,9 +176,13 @@ impl GeminiCliProvider { cmd.stdout(Stdio::piped()).stderr(Stdio::piped()); - let mut child = cmd - .spawn() - .map_err(|e| ProviderError::RequestFailed(format!("Failed to spawn command: {}", e)))?; + let mut child = cmd.spawn().map_err(|e| { + ProviderError::RequestFailed(format!( + "Failed to spawn Gemini CLI command '{}': {}. \ + Make sure the Gemini CLI is installed and in your PATH.", + self.command, e + )) + })?; let stdout = child .stdout