use io_format_err, io_bail, io_err_other from proxmox-lang
and move the comment from the local io_bail in pbs-client/src/pxar/fuse.rs to the only use Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
b066586a47
commit
f26d7ca5c5
@ -309,7 +309,7 @@ impl TapeDriver for VirtualTapeHandle {
|
||||
Ok(Box::new(reader))
|
||||
}
|
||||
None => {
|
||||
return Err(BlockReadError::Error(proxmox_sys::io_format_err!("drive is empty (no tape loaded).")));
|
||||
return Err(BlockReadError::Error(proxmox_lang::io_format_err!("drive is empty (no tape loaded).")));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -362,7 +362,7 @@ impl TapeDriver for VirtualTapeHandle {
|
||||
|
||||
Ok(writer)
|
||||
}
|
||||
None => proxmox_sys::io_bail!("drive is empty (no tape loaded)."),
|
||||
None => proxmox_lang::io_bail!("drive is empty (no tape loaded)."),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user