From 61873fbee777a40df882c500d7d8a8147f779d44 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 24 Dec 2024 18:07:37 +0100 Subject: [PATCH] show error code in error message --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c2080af..aa08cb3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -225,7 +225,7 @@ dependencies = [ [[package]] name = "demostf-client" -version = "0.4.4" +version = "0.4.5" dependencies = [ "bytes", "futures-util", diff --git a/Cargo.toml b/Cargo.toml index 193bc4a..e0b8b9e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "demostf-client" -version = "0.4.4" +version = "0.4.5" authors = ["Robin Appelman "] edition = "2021" description = "Api client for demos.tf" diff --git a/src/lib.rs b/src/lib.rs index ba5d965..b223578 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,7 +28,7 @@ pub enum Error { InvalidApiKey, #[error("Hash mismatch")] HashMisMatch, - #[error("Unknown server error")] + #[error("Unknown server error {0}")] ServerError(u16), #[error("Invalid response: {0}")] InvalidResponse(String),