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

Commit f85317fb authored by Bart Van Assche's avatar Bart Van Assche
Browse files

Make an error message more informative

From
https://android-build.googleplex.com/builds/tests/view?testResultId=TR66328435937757440&invocationId=I00700010119503421

:

system/core/init/init_test.cpp:219: Failure
Failed
Value of: service->Start()
  Actual: createProcessGroup(0, 15611) failed for service 'console'
  Expected: is ok

The above error message does not contain enough information to
root-cause the test failure. Hence this CL that makes an error message
more informative.

Bug: 262090304
Change-Id: I09929b2f2aabf1eec4d90ec93234a9e968888da4
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
parent 433dae11
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -700,8 +700,9 @@ Result<void> Service::Start() {
            if (!result.ok()) {
                return Error() << "Sending notification failed: " << result.error();
            }
            return Error() << "createProcessGroup(" << proc_attr_.uid << ", " << pid_
                           << ") failed for service '" << name_ << "'";
            return Error() << "createProcessGroup(" << proc_attr_.uid << ", " << pid_ << ", "
                           << use_memcg << ") failed for service '" << name_
                           << "': " << strerror(errno);
        }

        // When the blkio controller is mounted in the v1 hierarchy, NormalIoPriority is