Skip to content

Commit

Permalink
Added call to ILLIXR::abort (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
e3m3 committed Feb 25, 2021
1 parent d8f47ed commit c27a600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit c27a600

Please sign in to comment.