spawn/packages/shared
Ahmed Abushagur 8d73d73406
fix: rethrow normalized Error in tryCatchIf/asyncTryCatchIf (#2930)
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>
2026-03-23 19:33:05 -07:00
..
src fix: rethrow normalized Error in tryCatchIf/asyncTryCatchIf (#2930) 2026-03-23 19:33:05 -07:00
package.json refactor: restore @openrouter/spawn-shared workspace package (#2405) 2026-03-09 17:14:26 -07:00