optional stack trace support
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2024-07-26 09:23:21 -05:00
parent 68a5f90715
commit 8aba39c955
3 changed files with 32 additions and 25 deletions

View File

@ -19,7 +19,9 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#if !defined(PROJECT_STATIC_LINK)
#include "cpptrace/cpptrace.hpp"
#endif
#include "cli/actions.hpp"
#include "initialize.hpp"
@ -30,7 +32,10 @@
using namespace repertory;
auto main(int argc, char **argv) -> int {
#if !defined(PROJECT_STATIC_LINK)
cpptrace::register_terminate_handler();
#endif
if (not repertory::project_initialize()) {
return -1;
}
@ -114,8 +119,6 @@ auto main(int argc, char **argv) -> int {
}
}
throw std::runtime_error("test");
int mount_result{};
if (res == exit_code::success) {
if (utils::cli::has_option(args, utils::cli::options::help_option)) {