Skip to content

Commit 744ee24

Browse files
committed
Add #[source]
1 parent 06f8afc commit 744ee24

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/test-manager/src/vm/qemu.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,27 @@ const OBTAIN_IP_TIMEOUT: Duration = Duration::from_secs(60);
2828
#[derive(thiserror::Error, Debug)]
2929
pub enum Error {
3030
#[error("Failed to set up network")]
31-
Network(network::linux::Error),
31+
Network(#[source] network::linux::Error),
3232
#[error("Failed to start QEMU")]
33-
StartQemu(io::Error),
33+
StartQemu(#[source] io::Error),
3434
#[error("QEMU exited unexpectedly")]
3535
QemuFailed(Option<ExitStatus>),
3636
#[error("Could not find pty")]
3737
NoPty,
3838
#[error("Could not find IP address of guest")]
3939
NoIpAddr,
4040
#[error("Failed to copy OVMF vars")]
41-
CopyOvmfVars(io::Error),
41+
CopyOvmfVars(#[source] io::Error),
4242
#[error("Failed to wrap OVMF vars copy in tempfile object")]
4343
WrapOvmfVars,
4444
#[error("Failed to start swtpm")]
45-
StartTpmEmulator(io::Error),
45+
StartTpmEmulator(#[source] io::Error),
4646
#[error("swtpm failed")]
47-
TpmEmulator(io::Error),
47+
TpmEmulator(#[source] io::Error),
4848
#[error("Timed out waiting for swtpm socket")]
4949
TpmSocketTimeout,
5050
#[error("Failed to create temp dir")]
51-
MkTempDir(io::Error),
51+
MkTempDir(#[source] io::Error),
5252
}
5353

5454
pub type Result<T> = std::result::Result<T, Error>;

0 commit comments

Comments
 (0)