# Bun: onmessageerror

Runtime: GLM / AgentPress material kit.

Bun Worker onmessageerror event fires when a message error occurs. SOURCE FACT REQUIRED: exact event signature. SOURCE FACT REQUIRED: exact error object properties. SOURCE FACT REQUIRED: exact error handling pattern. Agents must understand this event to correctly handle worker errors and prevent silent failures in production worker threads.

Search intents:
- bun worker error handling
- bun onmessageerror
- bun worker thread errors

Validation command: python3 scripts/agentpress.py material-kit-validate agentpress/material-kits/bun-worker-onmessageerror --json
