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

Error handling #28

Merged
merged 4 commits into from
Mar 24, 2023
Merged

Error handling #28

merged 4 commits into from
Mar 24, 2023

Conversation

cb-fumix
Copy link
Contributor

Hab hier mal basic Fehlerbehandlung eingebaut. Wollt ihr mal schaun was ihr davon haltet?

Wichtig ist einfach dass wir bei den asynchronen Funktionen Fehlerbehandlung vorsehen -> .catch(). Bei synchronem Code tuts auch der normal try-catch Block.

Hab es erstmal in der posts.ts angewendet.

Zukünftig sollten wir eventuell noch zusätzlich Schema Validierung mit Zod machen.

@cb-fumix cb-fumix requested review from thooyork and floscher March 23, 2023 12:00
@floscher floscher merged commit d93adf0 into main Mar 24, 2023
@floscher floscher deleted the error-handling branch March 24, 2023 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants