From 5190038af9ee8c6a65630b9a3332def5636e58cd Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 16 Jun 2020 08:30:02 -0700 Subject: [PATCH] Made log writing failure a soft failure --- IDE/src/BuildContext.bf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/IDE/src/BuildContext.bf b/IDE/src/BuildContext.bf index 6dbf4a66..f2865df2 100644 --- a/IDE/src/BuildContext.bf +++ b/IDE/src/BuildContext.bf @@ -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; }