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]]
|
[[package]]
|
||||||
name = "demostf-client"
|
name = "demostf-client"
|
||||||
version = "0.4.4"
|
version = "0.4.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytes",
|
"bytes",
|
||||||
"futures-util",
|
"futures-util",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "demostf-client"
|
name = "demostf-client"
|
||||||
version = "0.4.4"
|
version = "0.4.5"
|
||||||
authors = ["Robin Appelman <robin@icewind.nl>"]
|
authors = ["Robin Appelman <robin@icewind.nl>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "Api client for demos.tf"
|
description = "Api client for demos.tf"
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ pub enum Error {
|
||||||
InvalidApiKey,
|
InvalidApiKey,
|
||||||
#[error("Hash mismatch")]
|
#[error("Hash mismatch")]
|
||||||
HashMisMatch,
|
HashMisMatch,
|
||||||
#[error("Unknown server error")]
|
#[error("Unknown server error {0}")]
|
||||||
ServerError(u16),
|
ServerError(u16),
|
||||||
#[error("Invalid response: {0}")]
|
#[error("Invalid response: {0}")]
|
||||||
InvalidResponse(String),
|
InvalidResponse(String),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue