Skip to content

Commit d1a1c02

Browse files
authored
[dotnet] Indicate end of output taken from selenium manager (#12744)
Indicate end of output taken from selenium manager
1 parent 9bffabd commit d1a1c02

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dotnet/src/webdriver/SeleniumManager.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -163,20 +163,20 @@ private static Dictionary<string, object> RunCommand(string fileName, string arg
163163

164164
var exceptionMessageBuilder = new StringBuilder($"Selenium Manager process exited abnormally with {process.ExitCode} code: {fileName} {arguments}");
165165

166-
if (!string.IsNullOrEmpty(errorOutputBuilder.ToString()))
166+
if (!string.IsNullOrWhiteSpace(errorOutputBuilder.ToString()))
167167
{
168168
exceptionMessageBuilder.AppendLine();
169-
exceptionMessageBuilder.Append("Error Output >>");
170-
exceptionMessageBuilder.AppendLine();
169+
exceptionMessageBuilder.AppendLine("Error Output >>");
171170
exceptionMessageBuilder.Append(errorOutputBuilder);
171+
exceptionMessageBuilder.AppendLine("<<");
172172
}
173173

174-
if (!string.IsNullOrEmpty(outputBuilder.ToString()))
174+
if (!string.IsNullOrWhiteSpace(outputBuilder.ToString()))
175175
{
176176
exceptionMessageBuilder.AppendLine();
177-
exceptionMessageBuilder.Append("Standard Output >>");
178-
exceptionMessageBuilder.AppendLine();
177+
exceptionMessageBuilder.AppendLine("Standard Output >>");
179178
exceptionMessageBuilder.Append(outputBuilder);
179+
exceptionMessageBuilder.AppendLine("<<");
180180
}
181181

182182
throw new WebDriverException(exceptionMessageBuilder.ToString());

0 commit comments

Comments
 (0)