EdJoPaTo / website-stalker

Track changes on websites via git
GNU Lesser General Public License v2.1
54 stars 6 forks source link

fix: clean error when no sites after site-filter #176

Closed Teufelchen1 closed 1 year ago

Teufelchen1 commented 1 year ago

Hi! 👋

When accidentally running website-stalker run all, I got this error:

thread 'main' panicked at 'Site filter filtered everything out.', src/main.rs:130:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

which I disliked.

This PR changes that, the error now looks like this:

Error: The Site-filter filtered everything out.
There are no sites tracked for your query.
Tipp: Run 'website-stalker run --all' to stalk all tracked sites.

I believe this is better because:

Have a nice day!