From 708f66037251bc8f86fa7a86a4ea1307dcde7efc Mon Sep 17 00:00:00 2001 From: Kaitlyn NeSmith Date: Sat, 15 Jan 2022 11:44:00 -0600 Subject: [PATCH] Added extractor init fail error --- src/Globals.hpp | 2 +- src/Main.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Globals.hpp b/src/Globals.hpp index a2b66e8..6c1af4f 100644 --- a/src/Globals.hpp +++ b/src/Globals.hpp @@ -4,7 +4,7 @@ #include using namespace std; -const string VERSION = "1.0"; +const string VERSION = "1.1"; const string USAGE = " "; #endif \ No newline at end of file diff --git a/src/Main.cpp b/src/Main.cpp index 3a49661..5a1cc69 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -18,7 +18,10 @@ int main(int argc, char** argv) // Instantiate our extractor Extractor ext(argv[1]); if (!ext.IsReady()) + { + cerr << "Extractor initialization failed, aborting." << endl; return EXIT_FAILURE; + } // Extract files, check for error if (ext.ExtractFiles() == -1)