fix the error printing

This commit is contained in:
tamo 2021-05-25 10:48:57 +02:00
parent 49a0e8aa19
commit 991d8e1ec6
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -127,7 +127,7 @@ pub enum DumpStatus {
pub struct DumpInfo { pub struct DumpInfo {
pub uid: String, pub uid: String,
pub status: DumpStatus, pub status: DumpStatus,
#[serde(skip_serializing_if = "Option::is_none", flatten)] #[serde(skip_serializing_if = "Option::is_none")]
pub error: Option<String>, pub error: Option<String>,
} }