You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(runner): throw errors instead of returning empty document on link cycles (#1925)
Changed link resolution behavior to throw errors when detecting cycles or
hitting iteration limits, rather than silently returning an empty document
with a `did:null:null` space.
Changes:
- Modified `resolveLink()` to throw when cycle detected or iteration limit reached
- Removed `createEmptyResolvedFullLink()` helper that created the empty document
- Updated all related tests to expect thrown errors instead of undefined values
- Changed logger severity from warn to error for these conditions
- Enhanced cycle detection error message to include the seen path for debugging
This makes link resolution errors more explicit and easier to debug, rather
than silently failing with an empty document that might be missed.
0 commit comments