Tudor Stanciu 2022-01-10 11:31:00 +02:00
parent fb5ec3fb8d
commit f9881831dc
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ namespace NetworkResurrector.Agent.Application.Services.Windows
process.BeginErrorReadLine(); process.BeginErrorReadLine();
process.WaitForExit(); process.WaitForExit();
msg.Append($"Output:\n {commandOutput.ToString()}\n"); msg.Append($"Output:\n {commandOutput}\n");
msg.Append($"Errors:\n {commandError.ToString()}\n"); msg.Append($"Errors:\n {commandError}\n");
msg.Append($"Process ended at: {DateTime.Now}"); msg.Append($"Process ended at: {DateTime.Now}");
return (commandError.Length > 0, msg.ToString()); return (commandError.Length > 0, msg.ToString());