diff options
| author | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2024-03-07 11:02:59 +0100 |
|---|---|---|
| committer | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2024-03-08 14:14:23 +0100 |
| commit | 301a12319e4b4812fe829243106e6884c0f2d8ee (patch) | |
| tree | ad1059e76cc50061001d068b916a9631459d9dc7 | |
| parent | bee0555bc6d0a6116574af949a17ce3fe73c7d27 (diff) | |
| download | mullvadvpn-301a12319e4b4812fe829243106e6884c0f2d8ee.tar.xz mullvadvpn-301a12319e4b4812fe829243106e6884c0f2d8ee.zip | |
Add wrapped strings to error messages
| -rw-r--r-- | test/test-rpc/src/lib.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test-rpc/src/lib.rs b/test/test-rpc/src/lib.rs index 8cf65b1ecf..d151520601 100644 --- a/test/test-rpc/src/lib.rs +++ b/test/test-rpc/src/lib.rs @@ -19,11 +19,11 @@ pub enum Error { Tarpc(#[from] tarpc::client::RpcError), #[error("Syscall failed")] Syscall, - #[error("Internal IO error occurred")] + #[error("Internal IO error occurred: {0}")] Io(String), #[error("Interface not found")] InterfaceNotFound, - #[error("HTTP request failed")] + #[error("HTTP request failed: {0}")] HttpRequest(String), #[error("Failed to deserialize HTTP body")] DeserializeBody, @@ -39,17 +39,17 @@ pub enum Error { SendUdp, #[error("Failed to send TCP segment")] SendTcp, - #[error("Failed to send ping")] + #[error("Failed to send ping: {0}")] Ping(String), - #[error("Failed to get or set registry value")] + #[error("Failed to get or set registry value: {0}")] Registry(String), - #[error("Failed to change the service")] + #[error("Failed to change the service: {0}")] Service(String), - #[error("Could not read from or write to the file system")] + #[error("Could not read from or write to the file system: {0}")] FileSystem(String), - #[error("Could not serialize or deserialize file")] + #[error("Could not serialize or deserialize file: {0}")] FileSerialization(String), - #[error("User must be logged in but is not")] + #[error("User must be logged in but is not: {0}")] UserNotLoggedIn(String), #[error("Invalid URL")] InvalidUrl, |
