If open or xdg-open fail the error is:
No such file or directory (os error 2)
This generally means that the command could not open the browser on
the OS. To provide better help, improve the error message by informing
the user what went wrong and that they can run rad web --no-open
instead.
Signed-off-by: Fintan Halpenny fintan.halpenny@gmail.com X-Clacks-Overhead: GNU Terry Pratchett
If open or xdg-open fail the error is:
No such file or directory (os error 2)
This generally means that the command could not open the browser on
the OS. To provide better help, improve the error message by informing
the user what went wrong and that they can run rad web --no-open
instead.
Signed-off-by: Fintan Halpenny fintan.halpenny@gmail.com X-Clacks-Overhead: GNU Terry Pratchett
Nice! Much better then currently
Why not falling back directly to printing the URL? I mean, do keep the error message but still print the URL, such that rad web need not be run again. Wouldn’t that improve the user experience?
Changes:
- Still print the URL to visit
Rebase.