diff --git a/source/configurator/configuration.cpp b/source/configurator/configuration.cpp index bbaaa7bf8..0d94ab371 100644 --- a/source/configurator/configuration.cpp +++ b/source/configurator/configuration.cpp @@ -29,11 +29,10 @@ void Configuration::load(const string &path){ if(fileExists(path) == false) { throw runtime_error("Cannot find file: " + path); } - else if(fileExists(fileName) == false) { + loadStructure(path); + if(fileExists(fileName) == false) { throw runtime_error("Cannot find file: " + fileName); } - - loadStructure(path); loadValues(fileName); }