-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
do i look like i know what a monad is
A new error handling strategy has been introduced in main.rs. Instead of checking and logging errors in each step, errors are now handled using a Result type and custom ApplicationError enum. The new enum is defined in models.rs, having variants for different types of errors including fetching, parsing, first run skipping, and no new items detection. This reduces code repetition and improves readability as complex error handling scenarios are abstracted away into error variants.
- Loading branch information
Showing
2 changed files
with
45 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters