Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0ccb13b8 authored by Tobias Lindskog's avatar Tobias Lindskog Committed by Hidenari Koshimae
Browse files

Log correct reason for camera connect failures

Show the detailed error when we have it, rather than trying to show it
only when we don't.

Bug: 33358375
Change-Id: Ifa7a4f8de7b35a0379224efd1e27d6745844b853
parent 65374841
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ sp<TCam> CameraBase<TCam, TCamTraits>::connect(int cameraId,
        c->mStatus = NO_ERROR;
    } else {
        ALOGW("An error occurred while connecting to camera %d: %s", cameraId,
                (cs != nullptr) ? "Service not available" : ret.toString8().string());
                (cs == nullptr) ? "Service not available" : ret.toString8().string());
        c.clear();
    }
    return c;