@@ -28,27 +28,27 @@ const OBTAIN_IP_TIMEOUT: Duration = Duration::from_secs(60);
28
28
#[ derive( thiserror:: Error , Debug ) ]
29
29
pub enum Error {
30
30
#[ error( "Failed to set up network" ) ]
31
- Network ( network:: linux:: Error ) ,
31
+ Network ( # [ source ] network:: linux:: Error ) ,
32
32
#[ error( "Failed to start QEMU" ) ]
33
- StartQemu ( io:: Error ) ,
33
+ StartQemu ( # [ source ] io:: Error ) ,
34
34
#[ error( "QEMU exited unexpectedly" ) ]
35
35
QemuFailed ( Option < ExitStatus > ) ,
36
36
#[ error( "Could not find pty" ) ]
37
37
NoPty ,
38
38
#[ error( "Could not find IP address of guest" ) ]
39
39
NoIpAddr ,
40
40
#[ error( "Failed to copy OVMF vars" ) ]
41
- CopyOvmfVars ( io:: Error ) ,
41
+ CopyOvmfVars ( # [ source ] io:: Error ) ,
42
42
#[ error( "Failed to wrap OVMF vars copy in tempfile object" ) ]
43
43
WrapOvmfVars ,
44
44
#[ error( "Failed to start swtpm" ) ]
45
- StartTpmEmulator ( io:: Error ) ,
45
+ StartTpmEmulator ( # [ source ] io:: Error ) ,
46
46
#[ error( "swtpm failed" ) ]
47
- TpmEmulator ( io:: Error ) ,
47
+ TpmEmulator ( # [ source ] io:: Error ) ,
48
48
#[ error( "Timed out waiting for swtpm socket" ) ]
49
49
TpmSocketTimeout ,
50
50
#[ error( "Failed to create temp dir" ) ]
51
- MkTempDir ( io:: Error ) ,
51
+ MkTempDir ( # [ source ] io:: Error ) ,
52
52
}
53
53
54
54
pub type Result < T > = std:: result:: Result < T , Error > ;
0 commit comments