diff --git a/packages/coding-agent/src/core/tools/edit-diff.ts b/packages/coding-agent/src/core/tools/edit-diff.ts index a7d4bb708..d8c4c0039 100644 --- a/packages/coding-agent/src/core/tools/edit-diff.ts +++ b/packages/coding-agent/src/core/tools/edit-diff.ts @@ -414,7 +414,7 @@ export async function computeEditsDiff( await access(absolutePath, constants.R_OK); } catch (error: unknown) { const errorMessage = error instanceof Error && "code" in error ? `Error code: ${error.code}` : String(error); - return { error: `Could not write file: ${path}. ${errorMessage}.` }; + return { error: `Could not edit file: ${path}. ${errorMessage}.` }; } // Read the file diff --git a/packages/coding-agent/src/core/tools/edit.ts b/packages/coding-agent/src/core/tools/edit.ts index 567c593a4..7e360cf73 100644 --- a/packages/coding-agent/src/core/tools/edit.ts +++ b/packages/coding-agent/src/core/tools/edit.ts @@ -347,7 +347,7 @@ export function createEditToolDefinition( if (signal) { signal.removeEventListener("abort", onAbort); } - reject(new Error(`Could not write file: ${path}. ${errorMessage}.`)); + reject(new Error(`Could not edit file: ${path}. ${errorMessage}.`)); return; }