Repository: mesos Updated Branches: refs/heads/master c309611bb -> bd144fcc7
Added an error message to MesosContainerizerLaunch command. Review: https://reviews.apache.org/r/37617 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/bd144fcc Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/bd144fcc Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/bd144fcc Branch: refs/heads/master Commit: bd144fcc72c24a42143ef2b8f4c1af9761835881 Parents: c309611 Author: Jie Yu <[email protected]> Authored: Wed Aug 19 11:25:31 2015 -0700 Committer: Jie Yu <[email protected]> Committed: Thu Aug 20 09:00:12 2015 -0700 ---------------------------------------------------------------------- src/slave/containerizer/mesos/launch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/bd144fcc/src/slave/containerizer/mesos/launch.cpp ---------------------------------------------------------------------- diff --git a/src/slave/containerizer/mesos/launch.cpp b/src/slave/containerizer/mesos/launch.cpp index bd594d3..be600e3 100644 --- a/src/slave/containerizer/mesos/launch.cpp +++ b/src/slave/containerizer/mesos/launch.cpp @@ -16,6 +16,7 @@ * limitations under the License. */ +#include <errno.h> #include <string.h> #include <unistd.h> @@ -276,7 +277,7 @@ int MesosContainerizerLaunch::execute() } // If we get here, the execle call failed. - cerr << "Failed to execute command" << endl; + cerr << "Failed to execute command: " << strerror(errno) << endl; UNREACHABLE(); }
