vmm: Use thiserror/anyhow for vmm::Error

This gives a nicer user experience and this error can now be used as the
source for other errors based off this.

See: #1910

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-10-26 16:11:02 +00:00
parent 6d4656c68f
commit dfd21cbfc5
3 changed files with 35 additions and 16 deletions

1
Cargo.lock generated
View File

@@ -1649,6 +1649,7 @@ dependencies = [
"serde_json",
"signal-hook",
"tempfile",
"thiserror",
"url",
"vfio-ioctls",
"virtio-devices",