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

feat: Error handling #161

Merged
merged 24 commits into from
Dec 10, 2023
Merged

feat: Error handling #161

merged 24 commits into from
Dec 10, 2023

Conversation

k4lizen
Copy link
Member

@k4lizen k4lizen commented Dec 5, 2023

  • Changed error messages to be more standardized
  • Return errors in more places
  • Made colly always run async to have easier error handling (async doesn't return OnError errors)
  • Added comments after panics/fatals for clarity
  • Pulled Request error handling from engines out to sedefaults

Copy link
Member

@aleksasiriski aleksasiriski left a comment

Choose a reason for hiding this comment

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

This is a huge PR, will need to do one more inspection before merging.

src/cli/climode.go Show resolved Hide resolved
src/cache/redis/redis.go Show resolved Hide resolved
src/cache/redis/redis.go Show resolved Hide resolved
src/cli/climode.go Show resolved Hide resolved
src/router/search.go Outdated Show resolved Hide resolved
src/sedefaults/sedefaults.go Show resolved Hide resolved
src/sedefaults/sedefaults.go Outdated Show resolved Hide resolved
Copy link
Member

@aleksasiriski aleksasiriski left a comment

Choose a reason for hiding this comment

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

Looks good, logic of when to fatal for db SET and GET can be done in a future PR.

@k4lizen k4lizen merged commit 531d784 into main Dec 10, 2023
3 of 4 checks passed
@k4lizen k4lizen deleted the error-handling branch December 10, 2023 18:34
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