1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 07:44:09 +02:00

Made log writing failure a soft failure

This commit is contained in:
Brian Fiete 2020-06-16 08:30:02 -07:00
parent 52033be6ad
commit 5190038af9

View file

@ -487,7 +487,8 @@ namespace IDE
logStr.AppendF("IDE Process {0}\r\n", Platform.BfpProcess_GetCurrentId());
logStr.Append(linkLine);
String targetLogPath = scope String(targetPath, ".build.txt");
Utils.WriteTextFile(targetLogPath, logStr);
if (Utils.WriteTextFile(targetLogPath, logStr) case .Err)
gApp.OutputErrorLine("Failed to write {}", targetLogPath);
project.mLastDidBuild = true;
}
@ -975,7 +976,8 @@ namespace IDE
logStr.AppendF("IDE Process {0}\r\n", Platform.BfpProcess_GetCurrentId());
logStr.Append(linkLine);
String targetLogPath = scope String(targetPath, ".build.txt");
Utils.WriteTextFile(targetLogPath, logStr);
if (Utils.WriteTextFile(targetLogPath, logStr) case .Err)
gApp.OutputErrorLine("Failed to write {}", targetLogPath);
project.mLastDidBuild = true;
}