diff --git a/source/Cosmos.Build.Installer/Task.cs b/source/Cosmos.Build.Installer/Task.cs index 9452a6294..fdfbddbad 100644 --- a/source/Cosmos.Build.Installer/Task.cs +++ b/source/Cosmos.Build.Installer/Task.cs @@ -10,13 +10,15 @@ namespace Cosmos.Build.Installer { public void Run() { var exceptions = DoRun(); - Log.NewSection("Error"); - //Collect all the exceptions from the build stage, and list them - foreach(var msg in exceptions) - { - Log.WriteLine(msg); + if (exceptions.Count > 0) { + Log.NewSection("Error"); + //Collect all the exceptions from the build stage, and list them + foreach(var msg in exceptions) { + Log.WriteLine(msg); + } + Log.SetError(); } - Log.SetError(); + } public bool AmRunning32Bit() { @@ -167,4 +169,4 @@ namespace Cosmos.Build.Installer { mLog.WriteLine(aText); } } -} \ No newline at end of file +}