Merge "init: Make an error message more informative"
diff --git a/init/service.cpp b/init/service.cpp
index 8db2b05..2ce81a0 100644
--- a/init/service.cpp
+++ b/init/service.cpp
@@ -290,7 +290,8 @@
}
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_);
}