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

remove remaining fatalErrors #529

Merged
merged 6 commits into from
Jun 16, 2021
Merged

remove remaining fatalErrors #529

merged 6 commits into from
Jun 16, 2021

Conversation

aboedo
Copy link
Member

@aboedo aboedo commented Jun 15, 2021

Addresses #394

Replaces the last few remaining fatalErrors with better error handling.

@aboedo aboedo requested a review from a team June 15, 2021 20:00
@aboedo aboedo self-assigned this Jun 15, 2021
@aboedo
Copy link
Member Author

aboedo commented Jun 15, 2021

whooa, a linter! cool! I'll update

@aboedo aboedo force-pushed the fix/remove_remaining_fatalErrors branch from c2e95f1 to 7802cfe Compare June 15, 2021 20:01
@@ -5,10 +5,14 @@

import Foundation

enum DateExtensionsError: Error {
case notValidDateFromComponents
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I think invalidDateComponents could be a better name

Copy link
Member Author

Choose a reason for hiding this comment

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

good call

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm sorry I didn't catch this before, I just realized it might be useful to capture the date components that trigger this and spit those out to aid folks in debugging. Thoughts?

Copy link
Member Author

Choose a reason for hiding this comment

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

love it, adding

Copy link
Member Author

Choose a reason for hiding this comment

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

done! lmk what you think

Copy link
Contributor

Choose a reason for hiding this comment

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

Love it. 🎈🐐

Copy link
Contributor

@taquitos taquitos left a comment

Choose a reason for hiding this comment

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

Date components question (could go either way) but overall I'm very excited about removing opportunities for the SDK to crash

@aboedo aboedo merged commit c92487d into main Jun 16, 2021
@aboedo aboedo deleted the fix/remove_remaining_fatalErrors branch June 16, 2021 15:12
@aboedo aboedo mentioned this pull request Jul 13, 2021
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