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
@@ -24,19 +24,19 @@ pub struct EpollHelper {
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum EpollHelperError {
|
||||
#[error("Failed to create Fd: {0}")]
|
||||
#[error("Failed to create Fd")]
|
||||
CreateFd(#[source] std::io::Error),
|
||||
#[error("Failed to epoll_ctl: {0}")]
|
||||
#[error("Failed to epoll_ctl")]
|
||||
Ctl(#[source] std::io::Error),
|
||||
#[error("IO error: {0}")]
|
||||
#[error("IO error")]
|
||||
IoError(#[source] std::io::Error),
|
||||
#[error("Failed to epoll_wait: {0}")]
|
||||
#[error("Failed to epoll_wait")]
|
||||
Wait(#[source] std::io::Error),
|
||||
#[error("Failed to get virtio-queue index: {0}")]
|
||||
#[error("Failed to get virtio-queue index")]
|
||||
QueueRingIndex(#[source] virtio_queue::Error),
|
||||
#[error("Failed to handle virtio device events: {0}")]
|
||||
#[error("Failed to handle virtio device events")]
|
||||
HandleEvent(#[source] anyhow::Error),
|
||||
#[error("Failed to handle timeout: {0}")]
|
||||
#[error("Failed to handle timeout")]
|
||||
HandleTimeout(#[source] anyhow::Error),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user