Skip to content

fix: use BridgeValidationError for duplicate chain adapter check#70

Open
mehmetkr-31 wants to merge 1 commit intobase:mainfrom
mehmetkr-31:fix/use-BridgeValidationError-in-createBridgeClient
Open

fix: use BridgeValidationError for duplicate chain adapter check#70
mehmetkr-31 wants to merge 1 commit intobase:mainfrom
mehmetkr-31:fix/use-BridgeValidationError-in-createBridgeClient

Conversation

@mehmetkr-31
Copy link
Copy Markdown

Summary

  • createBridgeClient() throws a generic Error when duplicate chain adapters are registered
  • All other validation paths in the SDK use structured BridgeError subclasses
  • This means consumers catching BridgeError will miss this specific validation failure
  • Replaced new Error(...) with new BridgeValidationError(...) for consistency

Test plan

  • All 233 existing tests pass (bun test)
  • Lint passes (bun run lint)
  • Build passes (bun run build)

🤖 Generated with Claude Code

Replace generic Error with BridgeValidationError in createBridgeClient
so that consumers catching BridgeError do not miss this validation
failure. All other validation paths in the SDK already use structured
BridgeError subclasses.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mehmetkr-31 mehmetkr-31 force-pushed the fix/use-BridgeValidationError-in-createBridgeClient branch from f2d7d5c to 4bdea60 Compare April 4, 2026 21:58
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.

1 participant