Add Log Warning in case active-stage is empty

Maybe Critical instead? Throwing an exception seems unnecessary.

refs #3668
This commit is contained in:
Jean Flach 2017-09-20 17:57:14 +02:00
parent ef5013b903
commit 287f72b0a0

View File

@ -254,7 +254,11 @@ String ConfigPackageUtility::GetActiveStage(const String& packageName)
fp.close();
if (fp.fail())
return "";
stage = "";
if (stage.IsEmpty())
Log(LogWarning, "ConfigPackageUtility")
<< "Could not determinate the active stage, does \"" << path << "\" exist?";
return stage.Trim();
}