Skip to content

Commit bfa5fbd

Browse files
nil957Javis
andauthored
fix(write-file): use error.message instead of error.msg in catch block (#467)
Co-authored-by: Javis <javis@JavisdeMacBook-Air.local>
1 parent 8f3070e commit bfa5fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/agent-runtime/src/tools/handlers/tool/write-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export const handleWriteFile = (async (
139139
return {
140140
tool: 'write_file' as const,
141141
path,
142-
error: `Error: Failed to process the write_file block. ${typeof error === 'string' ? error : error.msg}`,
142+
error: `Error: Failed to process the write_file block. ${typeof error === 'string' ? error : error.message}`,
143143
}
144144
})
145145
.then(async (fileProcessingResult) => ({

0 commit comments

Comments
 (0)