1
1
mirror of https://github.com/ellie/atuin.git synced 2024-10-04 00:19:39 +03:00
atuin/crates
Jeremy Cline 80e950c648
fix(daemon): Add context to error when unable to connect (#2394)
Recently, it seems, the socket location for the daemon moved and this
caused me to scratch my head briefly since I saw errors from the client
connecting to the daemon, but the daemon was clearly running and the
socket seemed to exist.

This patch includes more context when the client fails to connect to the
daemon. The path is included to help the user understand where the
client was looking, and `wrap_err_with()` is used to show the user the
cause of the error. This changes the error message from:

Error: failed to connect to local atuin daemon. Is it running?

to:

Error: failed to connect to local atuin daemon at /run/user/1001/atuin.sock. Is it running?

Caused by:
   0: transport error
   1: No such file or directory (os error 2)
   2: No such file or directory (os error 2)
2024-10-02 17:44:22 -07:00
..
atuin fix(tui): don't panic when search result is empty and up is pressed (#2395) 2024-10-02 17:43:19 -07:00
atuin-client chore: enable inline height and compact by default (#2249) 2024-08-27 15:17:13 +01:00
atuin-common chore(deps): update to sqlx 0.8 (#2343) 2024-08-05 14:11:01 +01:00
atuin-daemon fix(daemon): Add context to error when unable to connect (#2394) 2024-10-02 17:44:22 -07:00
atuin-dotfiles test: add env ATUIN_TEST_LOCAL_TIMEOUT to control test timeout of SQLite (#2337) 2024-08-05 14:22:40 +01:00
atuin-history chore(release): prepare for release v18.4.0-beta.3 (#2305) 2024-07-23 13:38:41 +01:00
atuin-server fix: disable mail by default, resolve #2404 (#2405) 2024-10-02 17:40:37 -07:00
atuin-server-database chore(release): prepare for release v18.4.0-beta.3 (#2305) 2024-07-23 13:38:41 +01:00
atuin-server-postgres chore(release): prepare for release v18.4.0-beta.3 (#2305) 2024-07-23 13:38:41 +01:00