From 3450b2096446d9a9c0ded6158d98bedcda2c5ec5 Mon Sep 17 00:00:00 2001 From: Calvin Prewitt Date: Thu, 16 May 2024 15:40:41 -0500 Subject: [PATCH 1/2] fixed typo --- crates/client/src/keyring/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/client/src/keyring/error.rs b/crates/client/src/keyring/error.rs index 613c3b12..99cf1c71 100644 --- a/crates/client/src/keyring/error.rs +++ b/crates/client/src/keyring/error.rs @@ -168,7 +168,7 @@ impl std::fmt::Display for KeyringError { "implementation, such as GNOME Keyring or KWallet, is installed, ", "or one is installed but not correctly configured. Consult your OS ", "distribution's documentation for instructions on setting it up, or run ", - "`warg config --keyring_backend ` to use a different backend.") + "`warg config --keyring-backend ` to use a different backend.") )?; } From dca8f2f9a328241adda6679cf960b5b8f21b5746 Mon Sep 17 00:00:00 2001 From: Calvin Prewitt Date: Thu, 16 May 2024 15:53:11 -0500 Subject: [PATCH 2/2] improved the keyring error message --- crates/client/src/keyring/error.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/client/src/keyring/error.rs b/crates/client/src/keyring/error.rs index 99cf1c71..ac7958c5 100644 --- a/crates/client/src/keyring/error.rs +++ b/crates/client/src/keyring/error.rs @@ -163,12 +163,12 @@ impl std::fmt::Display for KeyringError { { write!( f, - concat!(" Since you are using the 'secret-service' backend, ", - "the likely cause of this error is that no secret service ", - "implementation, such as GNOME Keyring or KWallet, is installed, ", - "or one is installed but not correctly configured. Consult your OS ", - "distribution's documentation for instructions on setting it up, or run ", - "`warg config --keyring-backend ` to use a different backend.") + "\nThe 'secret-service' keyring backend failed. +You may not have a secret service, such as GNOME Keyring or KWallet, installed or configured. +Consult your OS distribution's documentation for installation instructions. + +Alternatively, use `warg config --keyring-backend ` to set a different keyring backend. +See `warg config --help` for the options." )?; }