You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jp...@apache.org on 2017/11/08 22:54:14 UTC

mesos git commit: Printed the executable name when exec fails.

Repository: mesos
Updated Branches:
  refs/heads/master a98363fb9 -> eecac215e


Printed the executable name when exec fails.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/eecac215
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/eecac215
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/eecac215

Branch: refs/heads/master
Commit: eecac215ebe40f7651548794741dfee14af56d3c
Parents: a98363f
Author: James Peach <jp...@apache.org>
Authored: Wed Nov 8 14:51:02 2017 -0800
Committer: James Peach <jp...@apache.org>
Committed: Wed Nov 8 14:51:02 2017 -0800

----------------------------------------------------------------------
 src/slave/containerizer/mesos/launch.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/eecac215/src/slave/containerizer/mesos/launch.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/launch.cpp b/src/slave/containerizer/mesos/launch.cpp
index 49f11f1..b1584ff 100644
--- a/src/slave/containerizer/mesos/launch.cpp
+++ b/src/slave/containerizer/mesos/launch.cpp
@@ -870,7 +870,9 @@ int MesosContainerizerLaunch::execute()
   }
 
   // If we get here, the execvp call failed.
-  cerr << "Failed to execute command: " << os::strerror(errno) << endl;
+  cerr << "Failed to execute '" << executable << "': "
+       << os::strerror(errno) << endl;
+
   exitWithStatus(EXIT_FAILURE);
   UNREACHABLE();
 }