radicle-heartwood-lfs/radicle-httpd/src
Fintan Halpenny b6e1385e39
httpd: improve error message for missing browser
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, while still printing the URL to visit.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2024-03-08 23:58:34 +01:00
..
api httpd: Mark immutable response as such with Cache-Control header 2024-03-08 23:31:43 +01:00
bin Move `rad-web` binary to `radicle-httpd` package 2023-11-22 11:27:11 +01:00
commands httpd: improve error message for missing browser 2024-03-08 23:58:34 +01:00
api.rs radicle: implement caching for issues and patches 2024-02-23 16:03:21 +01:00
axum_extra.rs httpd: Mark immutable response as such with Cache-Control header 2024-03-08 23:31:43 +01:00
cache.rs Rename `Id` to `RepoId` 2024-01-22 15:51:44 +01:00
commands.rs Move `rad-web` binary to `radicle-httpd` package 2023-11-22 11:27:11 +01:00
error.rs httpd: Add routes for handling embeds in issues 2023-09-19 10:00:01 +02:00
git.rs Rename `Id` to `RepoId` 2024-01-22 15:51:44 +01:00
lib.rs Rename `Id` to `RepoId` 2024-01-22 15:51:44 +01:00
main.rs Rename `Id` to `RepoId` 2024-01-22 15:51:44 +01:00
raw.rs Rename `Id` to `RepoId` 2024-01-22 15:51:44 +01:00
test.rs radicle: implement caching for issues and patches 2024-02-23 16:03:21 +01:00
tracing_extra.rs httpd: Update axum and hyper dependency 2023-12-15 12:08:43 +01:00