apex: add errno reporting for mount

Change-Id: Ic6db027b5b898332bf2c86c714adabb73acc7b1e
This commit is contained in:
bigbiff
2021-02-21 13:33:54 -05:00
parent 4a60bee82e
commit c40dc1f9d8
+1 -1
View File
@@ -138,7 +138,7 @@ bool twrpApex::loadApexImage(std::string fileToMount, size_t loop_device_number)
ret = mount(loop_device.c_str(), bind_mount.c_str(), "ext4", MS_RDONLY, nullptr);
if (ret != 0) {
LOGERR("unable to mount loop device %s to %s\n", loop_device.c_str(), bind_mount.c_str());
LOGERR("unable to mount loop device %s to %s. reason: %s\n", loop_device.c_str(), bind_mount.c_str(), strerror(errno));
return false;
}