Skip to content

Commit 1708d50

Browse files
fix(tools): don't return a go error on glob tool failure
1 parent 3d95ca9 commit 1708d50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/agent/tools/glob.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func NewGlobTool(workingDir string) fantasy.AgentTool {
4444

4545
files, truncated, err := globFiles(ctx, params.Pattern, searchPath, 100)
4646
if err != nil {
47-
return fantasy.ToolResponse{}, fmt.Errorf("error finding files: %w", err)
47+
return fantasy.NewTextErrorResponse(fmt.Sprintf("error finding files: %v", err)), nil
4848
}
4949

5050
var output string

0 commit comments

Comments
 (0)