Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adequar retornos de erros dos cotrollers #16

Open
silv4b opened this issue Nov 11, 2023 · 0 comments
Open

Adequar retornos de erros dos cotrollers #16

silv4b opened this issue Nov 11, 2023 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@silv4b
Copy link
Owner

silv4b commented Nov 11, 2023

Nos controllers, algumas funções de tem retornos diferentes, isso atrapalha a manutenção do código e torna o código mais suscetível a estar bagunçado.

Uma sugestão colhida em call com um amigo foi usar:

throw new Error(`${error}`);

ou

throw error;;
@silv4b silv4b self-assigned this Nov 25, 2023
@silv4b silv4b added bug Something isn't working enhancement New feature or request labels Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant