pwnwriter / haylxon

⚡ Blazing-fast tool to grab screenshots of your domain list right from terminal.
https://crates.io/crates/hxn
MIT License
399 stars 19 forks source link

Panic if browser binary isn't found #10

Closed taladar closed 1 year ago

taladar commented 1 year ago

Apparently if the browser binary is not found on the system hxn just panics.

There should be a better error message for this case, especially since the panic just mentions "No such file or directory" but not which path (semantically or the actual value) this refers to.

pwnwriter commented 1 year ago

Right now, i'm able to give some other hints too, but unble to remove panicking :(

ok

taladar commented 1 year ago

You could just exit after printing those hints?

pwnwriter commented 1 year ago

Awh, that was smoooth, thanks

okk

taladar commented 1 year ago

You probably want to set the exit code to something other than 0 since 0 usually indicates a successful operation.