rmanguinho / clean-ts-api

API em NodeJs usando Typescript, TDD, Clean Architecture, Design Patterns e SOLID principles
https://rmanguinho.github.io/
GNU General Public License v3.0
1.86k stars 498 forks source link

Replace LogControllerDecorator by ServerErrorControllerDecorator #53

Open guilhermeledes opened 2 years ago

guilhermeledes commented 2 years ago

There is a bug at LogControllerDecorator if it throws at LogErrorRepository, that exception is not handled. This implementation replaces the LogControllerDecorator by ServerErrorControllerDecorator, that can handle and log all controllers errors and LogErrorRepository also to returns to the API