Skip to content

Commit 558e345

Browse files
Update content/docs/reference/design-docs/editoast-errors/_index.en.md
Co-authored-by: Jean SIMARD <[email protected]>
1 parent 0e29b95 commit 558e345

File tree

1 file changed

+1
-1
lines changed
  • content/docs/reference/design-docs/editoast-errors

1 file changed

+1
-1
lines changed

content/docs/reference/design-docs/editoast-errors/_index.en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ The trick proposed here is to set each error to a non-existent status code and h
325325

326326
#### Migration
327327

328-
The easier way to proceed here would be, in my (Léo) opinion, to start by converting simple errors that occur deep in the stack (such as Postgres errors, Redis errors, Core errors, etc.). This way, we can rely on the Rust compiler to guide us through the process and ensure we don't forget any error. We'll need some kind of adapters to incorporate these errors into `EditoastError`s. We may find a generic way to do that, but that's more an implementation detail, especially since that would be temporary.
328+
The easier way to proceed here would be, to start by converting simple errors that occur deep in the stack (such as Postgres errors, Redis errors, Core errors, etc.). This way, we can rely on the Rust compiler to guide us through the process and ensure we don't forget any error. We'll need some kind of adapters to incorporate these errors into `EditoastError`s. We may find a generic way to do that, but that's more an implementation detail, especially since that would be temporary.
329329

330330
A good starting place would be `editoast_search`[^1] because its internal errors do not implement `EditoastError` already. Valkey errors may also be a decent candidate.
331331

0 commit comments

Comments
 (0)