You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2016/09/26 12:53:03 UTC
mesos git commit: Fixed a bug in error message construction when
testing for `systemd`.
Repository: mesos
Updated Branches:
refs/heads/master ec4c81a12 -> 720db8370
Fixed a bug in error message construction when testing for `systemd`.
Review: https://reviews.apache.org/r/52258/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/720db837
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/720db837
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/720db837
Branch: refs/heads/master
Commit: 720db837087216f27d96b2d3b8976a53d976255f
Parents: ec4c81a
Author: Jan Schlicht <ja...@mesosphere.io>
Authored: Mon Sep 26 14:44:49 2016 +0200
Committer: Michael Park <mp...@apache.org>
Committed: Mon Sep 26 14:47:55 2016 +0200
----------------------------------------------------------------------
src/linux/systemd.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/720db837/src/linux/systemd.cpp
----------------------------------------------------------------------
diff --git a/src/linux/systemd.cpp b/src/linux/systemd.cpp
index 96813b7..6318f48 100644
--- a/src/linux/systemd.cpp
+++ b/src/linux/systemd.cpp
@@ -199,7 +199,8 @@ bool exists()
const Result<string> realpath = os::realpath("/sbin/init");
if (realpath.isError() || realpath.isNone()) {
LOG(WARNING) << "Failed to test /sbin/init for systemd environment: "
- << realpath.error();
+ << (realpath.isError() ? realpath.error()
+ : "does not exist");
return false;
}