Merge pull request #209 from continuedev/fix/ripgrep-error-message

Fix confusing ripgrep error message
This commit is contained in:
Nate Sesti 2025-08-13 15:37:31 -07:00 • committed by GitHub
commit d383a749c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,7 +99,7 @@ export const searchCodeTool: Tool = {
}
if (error instanceof Error) {
if (error.message.includes("command not found")) {
return `Error: ripgrep is not installed. Inform the user and run /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" to install it`;
return `Error: ripgrep is not installed.`;
}
}
return `Error executing ripgrep: ${