mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-12 06:00:25 +00:00
When the guard returns false, both functions re-threw the raw caught value (e) instead of the normalized Error (err). If a non-Error value was thrown (string, number), downstream handlers received inconsistent types instead of always getting Error instances. Changed throw e → throw err in both functions. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| index.ts | ||
| parse.ts | ||
| result.ts | ||
| type-guards.ts | ||