Improve error logging
It took me more goes than it should have to figure out what I was
doing wrong, so add some context to these error messages.
Test: Builds
Change-Id: I9d1d38046fa1a3c787d280d2caf4e232cac13244
diff --git a/compos/verify/verify.rs b/compos/verify/verify.rs
index 184b9ff..4dc9954 100644
--- a/compos/verify/verify.rs
+++ b/compos/verify/verify.rs
@@ -90,8 +90,8 @@
let info = artifacts_dir.join("compos.info");
let signature = artifacts_dir.join("compos.info.signature");
- let info = read_small_file(&info)?;
- let signature = read_small_file(&signature)?;
+ let info = read_small_file(&info).context("Failed to read compos.info")?;
+ let signature = read_small_file(&signature).context("Failed to read compos.info signature")?;
// We need to start the thread pool to be able to receive Binder callbacks
ProcessState::start_thread_pool();