Update to improved system_properties API.
We'll now return an error if there is an actual error reading the
property, rather than treating it the same as the property not being
set.
Bug: 217728265
Test: mm
Change-Id: I81f22d9ed07443b094f9a64a0737f4d24a2afe15
diff --git a/vm/src/main.rs b/vm/src/main.rs
index 2514424..2cbae3e 100644
--- a/vm/src/main.rs
+++ b/vm/src/main.rs
@@ -251,7 +251,7 @@
(true, true) => println!("Both protected and unprotected VMs are supported."),
}
- if let Ok(version) = system_properties::read("ro.boot.hypervisor.version") {
+ if let Some(version) = system_properties::read("ro.boot.hypervisor.version")? {
println!("Hypervisor version: {}", version);
} else {
println!("Hypervisor version not set.");