mirror of
https://codeberg.org/demostf/api-client.git
synced 2026-06-03 08:34:15 +02:00
show error code in error message
This commit is contained in:
parent
d32f3674f3
commit
61873fbee7
3 changed files with 3 additions and 3 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -225,7 +225,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "demostf-client"
|
||||
version = "0.4.4"
|
||||
version = "0.4.5"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"futures-util",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "demostf-client"
|
||||
version = "0.4.4"
|
||||
version = "0.4.5"
|
||||
authors = ["Robin Appelman <robin@icewind.nl>"]
|
||||
edition = "2021"
|
||||
description = "Api client for demos.tf"
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue