danvergara / morphos

Self-hosted file converter server
MIT License
1.06k stars 44 forks source link

Add idiomatic error handling #41

Closed danvergara closed 6 months ago

danvergara commented 6 months ago

Add idiomatic error handling

Description

Since the very beginning of the project, I thought that the way I was handling errors was tech debt. So, I went ahead and applied a pattern that found interesting while reading through this article. I just adapted it to my needs by changing some details.

Changes introduced in this PR:

Screenshot from 2024-03-26 22-18-59

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Tested locally by running into known errors or unintended behaviors.

Checklist: