diff --git a/src/core/task/ToolExecutor.ts b/src/core/task/ToolExecutor.ts index b3ca806aaf..c581e1ccb6 100644 --- a/src/core/task/ToolExecutor.ts +++ b/src/core/task/ToolExecutor.ts @@ -247,6 +247,7 @@ export class ToolExecutor { * Handles errors during tool execution */ private async handleError(action: string, error: Error, block: ToolUse): Promise { + console.log(error) const errorString = `Error ${action}: ${error.message}` await this.say("error", errorString) diff --git a/src/services/ripgrep/index.ts b/src/services/ripgrep/index.ts index 014c3aa88e..de27597a18 100644 --- a/src/services/ripgrep/index.ts +++ b/src/services/ripgrep/index.ts @@ -111,7 +111,7 @@ export async function regexSearchFiles( try { output = await execRipgrep(args) } catch (error) { - throw Error("Error calling ripgrep", error) + throw Error("Error calling ripgrep", { cause: error }) } const results: SearchResult[] = [] let currentResult: Partial | null = null diff --git a/src/standalone/cline-core.ts b/src/standalone/cline-core.ts index 8665815d8c..079369e799 100644 --- a/src/standalone/cline-core.ts +++ b/src/standalone/cline-core.ts @@ -45,7 +45,7 @@ function setupHostProvider() { const getCallbackUri = (): Promise => { return AuthHandler.getInstance().getCallbackUri() } - const getBinaryLocation = async (name: string): Promise => path.join(".", name) + const getBinaryLocation = async (name: string): Promise => path.join(process.cwd(), name) HostProvider.initialize( createWebview,