We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Get-Service
1 parent 62699bd commit b49de75Copy full SHA for b49de75
1 file changed
src/Microsoft.PowerShell.Commands.Management/commands/management/Service.cs
@@ -103,7 +103,7 @@ internal void WriteNonTerminatingError(
103
string message = StringUtil.Format(errorMessage,
104
serviceName,
105
displayName,
106
- (innerException == null) ? string.Empty : innerException.Message);
+ (innerException == null) ? category.ToString() : innerException.Message);
107
108
var exception = new ServiceCommandException(message, innerException);
109
exception.ServiceName = serviceName;
0 commit comments