mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: virtio-devices: streamline error Display::fmt()
The changes were mostly automatically applied using the Python script mentioned in the first commit of this series. Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
committed by
Rob Bradford
parent
3541cebbf1
commit
8e2973fe7c
@@ -153,11 +153,11 @@ pub const TX_RATE_LIMITER_EVENT: u16 = EPOLL_HELPER_EVENT_LAST + 6;
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum Error {
|
||||
#[error("Failed to open taps: {0}")]
|
||||
#[error("Failed to open taps")]
|
||||
OpenTap(#[source] OpenTapError),
|
||||
#[error("Using existing tap: {0}")]
|
||||
#[error("Using existing tap")]
|
||||
TapError(#[source] TapError),
|
||||
#[error("Error calling dup() on tap fd: {0}")]
|
||||
#[error("Error calling dup() on tap fd")]
|
||||
DuplicateTapFd(#[source] std::io::Error),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user