mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
This commit is contained in:
@@ -103,7 +103,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
string message = StringUtil.Format(errorMessage,
|
||||
serviceName,
|
||||
displayName,
|
||||
(innerException == null) ? string.Empty : innerException.Message);
|
||||
(innerException == null) ? category.ToString() : innerException.Message);
|
||||
|
||||
var exception = new ServiceCommandException(message, innerException);
|
||||
exception.ServiceName = serviceName;
|
||||
|
||||
Reference in New Issue
Block a user