You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by nn...@apache.org on 2014/10/16 00:10:46 UTC
git commit: Replaced cerr/exit with EXIT when parsing master flags.
Repository: mesos
Updated Branches:
refs/heads/master a41661420 -> de6015158
Replaced cerr/exit with EXIT when parsing master flags.
Review: https://reviews.apache.org/r/26629
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/de601515
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/de601515
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/de601515
Branch: refs/heads/master
Commit: de6015158dddfaba393a8a511aca831ad53100c0
Parents: a416614
Author: Kapil Arya <ka...@mesosphere.io>
Authored: Wed Oct 15 14:55:09 2014 -0700
Committer: Niklas Q. Nielsen <ni...@mesosphere.io>
Committed: Wed Oct 15 14:55:09 2014 -0700
----------------------------------------------------------------------
src/master/main.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/de601515/src/master/main.cpp
----------------------------------------------------------------------
diff --git a/src/master/main.cpp b/src/master/main.cpp
index 72e243a..29ded49 100644
--- a/src/master/main.cpp
+++ b/src/master/main.cpp
@@ -148,8 +148,7 @@ int main(int argc, char** argv)
if (flags.modules.isSome()) {
Try<Nothing> result = ModuleManager::load(flags.modules.get());
if (result.isError()) {
- cerr << "Error loading modules: " << result.error() << endl;
- exit(1);
+ EXIT(1) << "Error loading modules: " << result.error();
}
}