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

Better error handling #75

Merged
merged 4 commits into from
Jan 21, 2024
Merged

Better error handling #75

merged 4 commits into from
Jan 21, 2024

Conversation

starcraft66
Copy link
Member

@starcraft66 starcraft66 commented Nov 12, 2023

Most of the code in this project was written in a rush with tight deadlines before the event and not much thought was put into proper error handling.

Most of this pr changes return types to match on atoms for success and error.

Copy link
Collaborator

@berbiche berbiche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Some error handling can be cleaned up to use withs as discussed in person

lib/lanpartyseating/logic/reservation_logic.ex Outdated Show resolved Hide resolved
lib/lanpartyseating/logic/station_logic.ex Outdated Show resolved Hide resolved
lib/lanpartyseating/logic/station_logic.ex Outdated Show resolved Hide resolved
lib/lanpartyseating/logic/tournaments_logic.ex Outdated Show resolved Hide resolved
lib/lanpartyseating/logic/tournaments_logic.ex Outdated Show resolved Hide resolved
@starcraft66 starcraft66 changed the title wip Better error handling Jan 21, 2024
@starcraft66 starcraft66 marked this pull request as ready for review January 21, 2024 19:21
lib/lanpartyseating/logic/station_logic.ex Outdated Show resolved Hide resolved
lib/lanpartyseating/logic/tournaments_logic.ex Outdated Show resolved Hide resolved
@starcraft66 starcraft66 merged commit f09afa0 into master Jan 21, 2024
1 check passed
@starcraft66 starcraft66 deleted the feature/tgh/cleanup branch January 21, 2024 19:39
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