Skip to content

Conversation

@ieow
Copy link
Contributor

@ieow ieow commented Jan 19, 2026

Explanation

Adds a new generic SeedlessOnboardingError class to handle errors in the SeedlessOnboardingController that don't fit the more specific PasswordSyncError or RecoveryError classes.
Changes

  • Added SeedlessOnboardingError class with:
  • details property for additional debugging context beyond the error message
  • cause property to preserve the original error chain
  • toJSON() method for proper serialization in logging/error tracking systems

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Introduces a generic SeedlessOnboardingError with optional details, cause propagation (Error/string/object), and toJSON() serialization for structured logging.

  • New SeedlessOnboardingError class in errors.ts; comprehensive tests added in errors.test.ts
  • SeedlessOnboardingController.authenticate now throws SeedlessOnboardingError with cause on failure
  • Public API updated to export SeedlessOnboardingError from index.ts

Written by Cursor Bugbot for commit b66a50f. This will update automatically on new commits. Configure here.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@ieow ieow changed the title chore: seedless error with causes details chore: seedless error with causes details TO-168 Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants