diff --git a/src/std_utils.cc b/src/std_utils.cc index cb98e7d..6926cf2 100644 --- a/src/std_utils.cc +++ b/src/std_utils.cc @@ -170,8 +170,7 @@ namespace pEp { auto ss = ostringstream{}; ifstream input_file(filename); if (!input_file.is_open()) { - runtime_error e{ "Could not open the file: " + filename }; - exit(EXIT_FAILURE); + throw runtime_error ("Could not open the file: " + filename); } ss << input_file.rdbuf(); return ss.str(); diff --git a/test/test_inspect.cc b/test/test_inspect.cc index 700671c..7827f31 100644 --- a/test/test_inspect.cc +++ b/test/test_inspect.cc @@ -1,5 +1,6 @@ #include #include +#include #include "../src/inspect.hh" #include #include