diff --git a/IDE/src/IDEApp.bf b/IDE/src/IDEApp.bf index 9f2a74cd..f97b1f6e 100644 --- a/IDE/src/IDEApp.bf +++ b/IDE/src/IDEApp.bf @@ -11460,7 +11460,7 @@ namespace IDE if (mTestManager != null) mTestManager.BuildFailed(); if (mVerbosity > .Quiet) - OutputLineSmart("ERROR: Compile failed. Total build time: {0:0.00}s", stopwatch.ElapsedMilliseconds / 1000.0f); + OutputLineSmart("ERROR-SOFT: Compile failed. Total build time: {0:0.00}s", stopwatch.ElapsedMilliseconds / 1000.0f); mLastCompileFailed = true; if (mRunningTestScript) diff --git a/IDE/src/ui/OutputPanel.bf b/IDE/src/ui/OutputPanel.bf index 02e525f6..5c544766 100644 --- a/IDE/src/ui/OutputPanel.bf +++ b/IDE/src/ui/OutputPanel.bf @@ -287,7 +287,7 @@ namespace IDE.ui public void WriteSmart(StringView text) { - for (var line in text.Split('\n')) + LineLoop: for (var line in text.Split('\n')) { if (@line.Pos != 0) Write("\n"); @@ -302,6 +302,13 @@ namespace IDE.ui mQueuedDisplayChanges.Add(QueuedDisplayChange(mQueuedText.Length, "ERROR".Length, (.)SourceElementType.BuildError)); } + if (line.StartsWith("ERROR-SOFT:")) + { + var str = scope:LineLoop String(line); + str.Replace("ERROR-SOFT", "ERROR"); + line = str; + mQueuedDisplayChanges.Add(QueuedDisplayChange(mQueuedText.Length, "ERROR".Length, (.)SourceElementType.BuildError)); + } if ((line.StartsWith("WARNING:")) || (line.StartsWith("WARNING("))) { mQueuedDisplayChanges.Add(QueuedDisplayChange(mQueuedText.Length, "WARNING".Length, (.)SourceElementType.BuildWarning));