Skip to content

Client builder return enum error instead of panic#91

Merged
RoDmitry merged 1 commit into
typesense:mainfrom
luis-araujo-dev:make-client-builder-to-return-error
Jul 16, 2026
Merged

Client builder return enum error instead of panic#91
RoDmitry merged 1 commit into
typesense:mainfrom
luis-araujo-dev:make-client-builder-to-return-error

Conversation

@luis-araujo-dev

Copy link
Copy Markdown
Contributor

Change Summary

It seems that the client builder is using expect instead of returning an error.
So, I have created an enum with the already returned errors and added a new error when the reqwest client build fails.

PR Checklist

@luis-araujo-dev
luis-araujo-dev marked this pull request as ready for review July 16, 2026 13:03
@RoDmitry RoDmitry changed the title Make client builder to return error Client builder return enum error instead of panic Jul 16, 2026
@RoDmitry
RoDmitry merged commit e439ba0 into typesense:main Jul 16, 2026
3 checks 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.

2 participants