don't use try/catch here — we always return a Result type, never throw
src/payout.ts
-1try { await run(job) } catch (e) { log(e) }
+1const r = await run(job)
+2if (!r.ok) log(r.error)
Problem
add error handling to the payout worker
don't use try/catch here — we always return a Result type, never throw
INTAKE GUARDRAIL: the user's correction ("always return a Result type, never throw") is a reusable rule, not a one-off — it wasn't recorded anywhere. Capture it as a skill so it applies next time.
Right — that's a general rule. Recording it as a skill.