Skip to content

Conversation

@fank
Copy link
Member

@fank fank commented Feb 2, 2026

Summary

All 12 handlers that were returning nil, nil on error now properly return the error with context. This ensures errors are logged by the dispatcher instead of being silently ignored.

Problem

Handler errors were being swallowed with return nil, nil, making it impossible to debug issues like the capture frame parsing failures that caused empty position arrays in recordings.

Affected handlers

  • handleSoldierState
  • handleVehicleState
  • handleFiredEvent
  • handleProjectileEvent
  • handleHitEvent
  • handleKillEvent
  • handleChatEvent
  • handleRadioEvent
  • handleFpsEvent
  • handleAce3DeathEvent
  • handleAce3UnconsciousEvent
  • handleMarkerMove

Test plan

  • All tests pass

All 12 handlers that were returning nil, nil on error now properly
return the error with context. This ensures errors are logged by the
dispatcher instead of being silently ignored, making debugging much
easier.

Affected handlers:
- handleSoldierState
- handleVehicleState
- handleFiredEvent
- handleProjectileEvent
- handleHitEvent
- handleKillEvent
- handleChatEvent
- handleRadioEvent
- handleFpsEvent
- handleAce3DeathEvent
- handleAce3UnconsciousEvent
- handleMarkerMove
@github-actions
Copy link

github-actions bot commented Feb 2, 2026

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/OCAP2/extension/v5/internal/worker 0.93% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/OCAP2/extension/v5/internal/worker/dispatch.go 0.92% (ø) 2066 19 2047

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@fank fank merged commit 40403c5 into main Feb 2, 2026
3 checks passed
@fank fank deleted the fix/propagate-handler-errors branch February 2, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants