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

Commit ffaac1c2 authored by Steven Moreland's avatar Steven Moreland
Browse files

Binder: disambiguate unlinkToDeath error

BpBinder may return OK, DEAD_OBJECT, or NAME_NOT_FOUND for this
operation, but BBinder returns INVALID_OPERATION, and subclasses may
return other errors. In at least one bug, the resolution of this
ambiguity would help direct debugging.

Bug: 180891878
Test: N/A

Change-Id: I109a09788d3075e7c594445a6f3649ade109b5c2
parent 4d832266
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1516,7 +1516,9 @@ static jboolean android_os_BinderProxy_unlinkToDeath(JNIEnv* env, jobject obj,
            res = JNI_TRUE;
        } else {
            jniThrowException(env, "java/util/NoSuchElementException",
                              "Death link does not exist");
                              base::StringPrintf("Death link does not exist (%s)",
                                                 statusToString(err).c_str())
                                      .c_str());
        }
    }