Skip to content

Commit ea1124e

Browse files
committed
fix: print inner error in case of PersistError::QueueConstruction
Otherwise it's impossible to figure out what precisely went wrong during queue restoration. Signed-off-by: Patrick Roy <[email protected]>
1 parent 752efcb commit ea1124e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vmm/src/devices/virtio/persist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use crate::vstate::memory::{GuestAddress, GuestMemoryMmap};
2222
pub enum PersistError {
2323
/// Snapshot state contains invalid queue info.
2424
InvalidInput,
25-
/// Could not restore queue.
25+
/// Could not restore queue: {0}
2626
QueueConstruction(QueueError),
2727
}
2828

0 commit comments

Comments
 (0)