Replace URL in errors with full route URL

This commit is contained in:
bitfl0wer 2023-05-23 14:38:03 +02:00
parent 9a6a08bb67
commit 912d8043d0
1 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ impl types::Channel {
match from_str::<types::Channel>(&result.text().await.unwrap()) { match from_str::<types::Channel>(&result.text().await.unwrap()) {
Ok(object) => Ok(object), Ok(object) => Ok(object),
Err(e) => Err(InstanceServerError::RequestErrorError { Err(e) => Err(InstanceServerError::RequestErrorError {
url: url_api.to_string(), url: format!("{}/guilds/{}/channels/", url_api, guild_id),
error: e.to_string(), error: e.to_string(),
}), }),
} }
@ -225,7 +225,7 @@ impl types::Channel {
match from_str::<types::Channel>(&result.text().await.unwrap()) { match from_str::<types::Channel>(&result.text().await.unwrap()) {
Ok(object) => Ok(object), Ok(object) => Ok(object),
Err(e) => Err(InstanceServerError::RequestErrorError { Err(e) => Err(InstanceServerError::RequestErrorError {
url: url_api.to_string(), url: format!("{}/guilds/{}/channels/", url_api, guild_id),
error: e.to_string(), error: e.to_string(),
}), }),
} }