Skip to content

fix: return typed DuplicateProfile error instead of panic in doctor-r…#198

Merged
Emeka000 merged 1 commit intoHealthy-Stellar:mainfrom
abore9769:fix/issue-170-doctor-registry-duplicate-profile
Mar 30, 2026
Merged

fix: return typed DuplicateProfile error instead of panic in doctor-r…#198
Emeka000 merged 1 commit intoHealthy-Stellar:mainfrom
abore9769:fix/issue-170-doctor-registry-duplicate-profile

Conversation

@abore9769
Copy link
Copy Markdown
Contributor

…egistry

Closes #170

  • Added contracterror enum with DuplicateProfile and ProfileNotFound variants
  • create_doctor_profile now returns Result<(), Error> instead of panicking
  • update_doctor_profile and get_doctor_profile also return typed Results
  • Updated tests to assert typed error variants via try_* client methods

…egistry

Closes Healthy-Stellar#170

- Added contracterror enum with DuplicateProfile and ProfileNotFound variants
- create_doctor_profile now returns Result<(), Error> instead of panicking
- update_doctor_profile and get_doctor_profile also return typed Results
- Updated tests to assert typed error variants via try_* client methods
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@abore9769 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Emeka000 Emeka000 merged commit 5d47253 into Healthy-Stellar:main Mar 30, 2026
1 check passed
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.

Remove panic on duplicate profile creation in doctor-registry

2 participants