Skip to content

Commit 6ae972e

Browse files
authored
tools: run background: return run error on failure (#141)
Signed-off-by: Andrea Luzzardi <[email protected]>
1 parent ab5c342 commit 6ae972e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcpserver/tools.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ Failure to do so will result in the tool being stuck, awaiting for the command t
474474
return resp, nil
475475
}
476476
if runErr != nil {
477-
return mcp.NewToolResultErrorFromErr("failed to run command", err), nil
477+
return mcp.NewToolResultErrorFromErr("failed to run command", runErr), nil
478478
}
479479

480480
out, err := json.Marshal(endpoints)

0 commit comments

Comments
 (0)