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

Commit df820ef9 authored by Felipe Leme's avatar Felipe Leme
Browse files

Includes user on createContextAsUser() exception.

Test: manual verification
Bug: 230498421

Change-Id: I1152573bd53d3f6a3129777e4ecd9df08138b188
parent b7105c20
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2593,7 +2593,8 @@ class ContextImpl extends Context {
        try {
            return createPackageContextAsUser(getPackageName(), flags, user);
        } catch (NameNotFoundException e) {
            throw new IllegalStateException("Own package not found: package=" + getPackageName());
            throw new IllegalStateException("Own package not found for user "
                    + user.getIdentifier() + ": package=" + getPackageName());
        }
    }