TypicalAM / goread

Beautiful program to read your RSS/Atom feeds right in the terminal!
GNU General Public License v3.0
424 stars 17 forks source link

Return error if failed to load Rss from URLs file #41

Closed itsjunetime closed 11 months ago

itsjunetime commented 11 months ago

In the current main, if the urls.yml file can't be parsed, execution continues while only logging an error to the log (and not directly warning the user of anything). Then, when the app fully loads up, the 'default' urls.yml configuration is written to the urls.yml file, overwriting any configuration the user had done without warning.

This fixes that problem by returning an error whenever the program can't load the specified urls.yml file. This then will tell the user exactly what went wrong instead of silently failing and overwriting their configuration.

TypicalAM commented 11 months ago

Thanks for the fix!