Skip to content

Commit b7d6e7a

Browse files
Update server/internal/hooks/pending_helpers.go
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 29b1dc6 commit b7d6e7a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/internal/hooks/pending_helpers.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ func (s *Service) buildTelemetryAttributesWithMetadata(payload *gen.ClaudePayloa
9898
attr.HookSourceKey: hookSource,
9999
}
100100

101+
if payload.ToolError != nil {
102+
attrs[attr.HookErrorKey] = payload.ToolError
103+
}
104+
101105
// Parse MCP tool names
102106
if strings.HasPrefix(toolName, "mcp__") {
103107
parts := strings.SplitN(toolName, "__", 3)

0 commit comments

Comments
 (0)