From af8f85c3c44c5216655bc3dead3e89a043a1c53b Mon Sep 17 00:00:00 2001 From: Faerbit Date: Wed, 3 Dec 2014 11:09:37 +0100 Subject: [PATCH] Exiting converter if no input file is given. --- converter/main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/converter/main.cc b/converter/main.cc index 88a6eb4..a18f867 100644 --- a/converter/main.cc +++ b/converter/main.cc @@ -7,6 +7,7 @@ int main( int argc, char *argv[] ){ if (argc <= 1){ std::cout << "Converter needs the level (1,2,...) as input." << std::endl; + exit(-1); } std::string levelString = argv[1]; Converter conv = Converter(levelString);