Skip to content

Commit 7b4adcd

Browse files
ckatsakroypat
authored andcommitted
fix(fdt): Improve reporting of errors related to FDT setup
Change the doc comment (which also affects the implementation of `std::fmt::Display`) for `ConfigurationError::SetupFDT` to include the underlying `fdt::FtdError`. This improves both the reporting of failures during FDT setup on the logs, as well as the message in API server's corresponding HTTP response. Signed-off-by: Christos Katsakioris <[email protected]> Signed-off-by: Filippos Tofalos <[email protected]>
1 parent 5ef02a8 commit 7b4adcd

File tree

1 file changed

+1
-1
lines changed
  • src/vmm/src/arch/aarch64

1 file changed

+1
-1
lines changed

src/vmm/src/arch/aarch64/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use crate::vstate::memory::{Address, Bytes, GuestAddress, GuestMemory, GuestMemo
2828
/// Errors thrown while configuring aarch64 system.
2929
#[derive(Debug, thiserror::Error, displaydoc::Display)]
3030
pub enum ConfigurationError {
31-
/// Failed to create a Flattened Device Tree for this aarch64 microVM.
31+
/// Failed to create a Flattened Device Tree for this aarch64 microVM: {0}
3232
SetupFDT(#[from] fdt::FdtError),
3333
/// Failed to compute the initrd address.
3434
InitrdAddress,

0 commit comments

Comments
 (0)