meilisearch-rust icon indicating copy to clipboard operation
meilisearch-rust copied to clipboard

Use thiserror to handle errors

Open bidoubiwa opened this issue 3 years ago • 0 comments

⚠️ Do not start contributing to this issue before this PR is merged: #297

Currently we are implementing all our errors by hand.

Exemple:

https://github.com/meilisearch/meilisearch-rust/blob/6f98caff09c2439002ac53307d1748a849c9e600/src/errors.rs#L58-L68

This would be way more simple using the thiserror library.

bidoubiwa avatar Aug 03 '22 10:08 bidoubiwa