From c27a600e2ffd4d4941787384c10fc889149cf1cd Mon Sep 17 00:00:00 2001 From: Giordano Salvador <73959795+e3m3@users.noreply.github.com> Date: Wed, 24 Feb 2021 20:56:58 -0500 Subject: [PATCH] Added call to ILLIXR::abort (#7) --- examples/plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/plugin.cpp b/examples/plugin.cpp index bed29b1f0..5950a5801 100644 --- a/examples/plugin.cpp +++ b/examples/plugin.cpp @@ -13,14 +13,14 @@ #include "../common/switchboard.hpp" #include "../common/data_format.hpp" #include "../common/phonebook.hpp" +#include "../common/error_util.hpp" using namespace ILLIXR; std::string get_path() { const char* KIMERA_ROOT_c_str = std::getenv("KIMERA_ROOT"); if (!KIMERA_ROOT_c_str) { - std::cerr << "Please define KIMERA_ROOT" << std::endl; - abort(); + ILLIXR::abort("Please define KIMERA_ROOT"); } std::string KIMERA_ROOT = std::string{KIMERA_ROOT_c_str}; return KIMERA_ROOT + "params/ILLIXR";