mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 21:24:41 +02:00
Add Log Warning in case active-stage is empty
Maybe Critical instead? Throwing an exception seems unnecessary. refs #3668
This commit is contained in:
parent
ef5013b903
commit
287f72b0a0
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user