ksud: add error context to log

This commit is contained in:
tiann
2023-04-12 13:17:13 +08:00
parent d711ab8b1f
commit 183d1a91c1
2 changed files with 12 additions and 7 deletions

View File

@@ -93,13 +93,13 @@ pub fn mount_systemlessly(module_dir: &str) -> Result<()> {
// mount /system first
if let Err(e) = mount_partition("system", &mut system_lowerdir) {
warn!("mount system failed: {e}");
warn!("mount system failed: {:#}", e);
}
// mount other partitions
for (k, mut v) in partition_lowerdir {
if let Err(e) = mount_partition(&k, &mut v) {
warn!("mount {k} failed: {e}");
warn!("mount {k} failed: {:#}", e);
}
}