Replace URL in errors with full route URL

This commit is contained in:
bitfl0wer 2023-05-23 14:38:03 +02:00
parent 8808e5554f
commit 71d5c229cf
No known key found for this signature in database
GPG Key ID: 84BBB60DF895ABF2
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()) {
Ok(object) => Ok(object),
Err(e) => Err(InstanceServerError::RequestErrorError {
url: url_api.to_string(),
url: format!("{}/guilds/{}/channels/", url_api, guild_id),
error: e.to_string(),
}),
}
@ -225,7 +225,7 @@ impl types::Channel {
match from_str::<types::Channel>(&result.text().await.unwrap()) {
Ok(object) => Ok(object),
Err(e) => Err(InstanceServerError::RequestErrorError {
url: url_api.to_string(),
url: format!("{}/guilds/{}/channels/", url_api, guild_id),
error: e.to_string(),
}),
}