diff --git a/cake/Program.cs b/cake/Program.cs index 571356459..067649843 100644 --- a/cake/Program.cs +++ b/cake/Program.cs @@ -371,15 +371,17 @@ public override void Run(BuildContext context) // Build and start HMI AppsRunTaskHelpers.BuildAndStartHmi(context, appFile, appName, logFilePath, ref summaryResult); - if (!summaryResult) - { - context.Log.Error($"App run failed for some of the applications."); - context.Log.Error($"Good luck with finding out the reason :-)."); - Environment.Exit(1); - } + } } } + + if (!summaryResult) + { + context.Log.Error($"App run failed for some of the applications."); + context.Log.Error($"Good luck with finding out the reason :-)."); + Environment.Exit(1); + } } else {