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

Commit 42764c4e authored by Bart Van Assche's avatar Bart Van Assche
Browse files

init: Make an error message more informative



Make it easier to diagnose service failures.

Bug: 213617178
Change-Id: I27135cb32b6a98b2fe24ab2324dffbf5b591fdd5
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
parent c41a4826
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -290,7 +290,8 @@ void Service::Reap(const siginfo_t& siginfo) {
    }

    if ((siginfo.si_code != CLD_EXITED || siginfo.si_status != 0) && on_failure_reboot_target_) {
        LOG(ERROR) << "Service with 'reboot_on_failure' option failed, shutting down system.";
        LOG(ERROR) << "Service " << name_
                   << " has 'reboot_on_failure' option and failed, shutting down system.";
        trigger_shutdown(*on_failure_reboot_target_);
    }