bzz / scholar-alert-digest

Aggregate unread emails from Google Scholar alerts
Apache License 2.0
41 stars 5 forks source link

Add -v CLI flag that prints all paper parsing errors #79

Open bzz opened 2 years ago

bzz commented 2 years ago

Right now on parsing the papers we only count all errors, silently skipping failures and thus hiding their root cause. https://github.com/bzz/scholar-alert-digest/blob/7d2e4de957edf2864360a95b579fc919e9fd561f/papers/papers.go#L46-L48

This leads to difficulties reproducing bugs like #76 as one needs to modify source code (by adding log.Print(err) to https://github.com/bzz/scholar-alert-digest/blob/7d2e4de957edf2864360a95b579fc919e9fd561f/papers/papers.go#L83-L84) for debugging.

Instead, it would be nice to have:

That would simplify the debugging, as users would be able to identify the offender emails and attach the specific HTMLs that causes errors.