matous-volf / todo-baggins

A task management app tailored specifically to my personal GTD workflow.
2 stars 0 forks source link

Proper ID not found model error handling #34

Open matous-volf opened 2 months ago

matous-volf commented 2 months ago

Currently, editing models and similar server functions do not return a specific error when the model is not found by the provided ID. The solution is probably to create a new enum like TaskEditError with variants NotFound and TaskError(TaskError).

matous-volf commented 2 months ago

Or, since it is common, add NotFound to the base Error.