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 <[email protected]> Authored: Wed Oct 15 14:55:09 2014 -0700 Committer: Niklas Q. Nielsen <[email protected]> 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(); } }
