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

Commit 56b2c4bb authored by Steven Moreland's avatar Steven Moreland
Browse files

Status: toString8, include stringified status_t

"-2147483640" is not a clear error message. "UNEXPECTED_NULL" is.

Bug: 144534032
Test: TH
Change-Id: I235bb1abb88481ffba4c140c27223077880e4dd0
parent 7618ed32
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -232,9 +232,10 @@ String8 Status::toString8() const {
        ret.append("No error");
    } else {
        ret.appendFormat("Status(%d, %s): '", mException, exceptionToString(mException).c_str());
        if (mException == EX_SERVICE_SPECIFIC ||
            mException == EX_TRANSACTION_FAILED) {
        if (mException == EX_SERVICE_SPECIFIC) {
            ret.appendFormat("%d: ", mErrorCode);
        } else if (mException == EX_TRANSACTION_FAILED) {
            ret.appendFormat("%s: ", statusToString(mErrorCode).c_str());
        }
        ret.append(String8(mMessage));
        ret.append("'");