Fixed fileexists checking order bug in configurator
This commit is contained in:
parent
d713349187
commit
bc868ae7b1
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue