mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-24 17:03:00 +10:00
Fix server error messages
This commit is contained in:
@@ -15,7 +15,7 @@ use serde::Deserialize;
|
||||
pub struct DropServerError {
|
||||
pub status_code: usize,
|
||||
pub status_message: String,
|
||||
// pub message: String,
|
||||
pub message: String,
|
||||
// pub url: String,
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ impl Display for RemoteAccessError {
|
||||
RemoteAccessError::InvalidResponse(error) => write!(
|
||||
f,
|
||||
"server returned an invalid response: {}, {}",
|
||||
error.status_code, error.status_message
|
||||
error.status_code, error.message
|
||||
),
|
||||
RemoteAccessError::UnparseableResponse(error) => {
|
||||
write!(f, "server returned an invalid response: {error}")
|
||||
|
||||
Reference in New Issue
Block a user