Commit 311bd31c authored by Gergo Ujhelyi's avatar Gergo Ujhelyi
Browse files

change checking place based on Adam's opinion


Signed-off-by: Gergo Ujhelyi's avatarGergo Ujhelyi <ujhelyi.gergo@ericsson.com>
parent a49fbb54
......@@ -137,14 +137,15 @@ public class Cli extends UserInterface {
if (args.length == 1) {
config_file = new File(args[0]);
System.out.printf("Using configuration file: %s\n", config_file.getName());
final CfgAnalyzer cfgAnalyzer = new CfgAnalyzer();
if (config_file == null) {
System.out.println("Error was found in the configuration file. Exiting");
cleanUp();
return EXIT_FAILURE;
}
System.out.printf("Using configuration file: %s\n", config_file.getName());
final CfgAnalyzer cfgAnalyzer = new CfgAnalyzer();
final boolean config_file_failure = cfgAnalyzer.parse(config_file);
if (config_file_failure) {
System.out.println("Error was found in the configuration file. Exiting");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment