in JetBrains.Profiler.SelfApi/src/Impl/ConsoleProfiler.cs [178:193]
private InvalidOperationException BuildException(string caption)
{
var message = new StringBuilder();
message.AppendLine(caption);
message.AppendLine("*** Standard Error ***");
lock (_errorLines)
message.AppendLine(string.Join(Environment.NewLine, _errorLines));
message.AppendLine();
message.AppendLine("*** Standard Output ***");
lock (_outputLines)
message.AppendLine(string.Join(Environment.NewLine, _outputLines));
throw new InvalidOperationException(message.ToString());
}