mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: tpm: 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
1ede418dcc
commit
3541cebbf1
+7
-7
@@ -45,19 +45,19 @@ pub fn is_selftest(input: &[u8]) -> bool {
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
pub enum Error {
|
||||
#[error("Could not initialize emulator's backend: {0}")]
|
||||
#[error("Could not initialize emulator's backend")]
|
||||
InitializeEmulator(#[source] anyhow::Error),
|
||||
#[error("Failed to create data fd to pass to swtpm: {0}")]
|
||||
#[error("Failed to create data fd to pass to swtpm")]
|
||||
PrepareDataFd(#[source] anyhow::Error),
|
||||
#[error("Failed to run Control Cmd: {0}")]
|
||||
#[error("Failed to run Control Cmd")]
|
||||
RunControlCmd(#[source] anyhow::Error),
|
||||
#[error("Emulator doesn't implement min required capabilities: {0}")]
|
||||
#[error("Emulator doesn't implement min required capabilities")]
|
||||
CheckCaps(#[source] anyhow::Error),
|
||||
#[error("Emulator failed to deliver request: {0}")]
|
||||
#[error("Emulator failed to deliver request")]
|
||||
DeliverRequest(#[source] anyhow::Error),
|
||||
#[error("Emulator failed to send/receive msg on data fd: {0}")]
|
||||
#[error("Emulator failed to send/receive msg on data fd")]
|
||||
SendReceive(#[source] anyhow::Error),
|
||||
#[error("Incorrect response to Self Test: {0}")]
|
||||
#[error("Incorrect response to Self Test")]
|
||||
SelfTest(#[source] anyhow::Error),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user