mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-27 14:02:19 +00:00
Update Task.cs
Fixed problem with "Error" section in log being created regardless
This commit is contained in:
parent
1c710704fb
commit
e1db7d192f
1 changed files with 9 additions and 7 deletions
|
|
@ -10,15 +10,17 @@ namespace Cosmos.Build.Installer {
|
||||||
|
|
||||||
public void Run() {
|
public void Run() {
|
||||||
var exceptions = DoRun();
|
var exceptions = DoRun();
|
||||||
|
if (exceptions.Count > 0) {
|
||||||
Log.NewSection("Error");
|
Log.NewSection("Error");
|
||||||
//Collect all the exceptions from the build stage, and list them
|
//Collect all the exceptions from the build stage, and list them
|
||||||
foreach(var msg in exceptions)
|
foreach(var msg in exceptions) {
|
||||||
{
|
|
||||||
Log.WriteLine(msg);
|
Log.WriteLine(msg);
|
||||||
}
|
}
|
||||||
Log.SetError();
|
Log.SetError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public bool AmRunning32Bit() {
|
public bool AmRunning32Bit() {
|
||||||
return IntPtr.Size == 4;
|
return IntPtr.Size == 4;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue