From 794c975287355de48158d9a80ed502d26b20a472 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Thu, 28 May 2020 18:30:35 -0400 Subject: [PATCH] Exit instead of abort (#233) --- include/cxxopts.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index 3dd5f52..e47cb81 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -480,11 +480,10 @@ namespace cxxopts throw T{text}; #else // Otherwise manually instantiate the exception, print what() to stderr, - // and abort + // and exit T exception{text}; std::cerr << exception.what() << std::endl; - std::cerr << "Aborting (exceptions disabled)..." << std::endl; - std::abort(); + std::exit(EXIT_FAILURE); #endif } -- libgit2 0.21.4