From 287f72b0a0ee76e1ef5052969677c5bbc672d65b Mon Sep 17 00:00:00 2001 From: Jean Flach Date: Wed, 20 Sep 2017 17:57:14 +0200 Subject: [PATCH] Add Log Warning in case active-stage is empty Maybe Critical instead? Throwing an exception seems unnecessary. refs #3668 --- lib/remote/configpackageutility.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/remote/configpackageutility.cpp b/lib/remote/configpackageutility.cpp index b7f04a18f..e0b88aa8e 100644 --- a/lib/remote/configpackageutility.cpp +++ b/lib/remote/configpackageutility.cpp @@ -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(); } -- 2.40.0