Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Remove "()" from internal error message
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Mar 15, 2024
1 parent 6bebd23 commit 20b5fb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static async Task<ObservableCollection<Command>> GetADCommands()
if (psOutput.HadErrors)
{
string errorMessage = "Internal Error: An error occurred while retrieving the Active Directory commands: " +
$"({string.Join(" ", psOutput.StdErr)})";
$"{string.Join(" ", psOutput.StdErr)}";
MessageBox.Show(errorMessage, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
throw new InvalidPowerShellStateException(errorMessage);
}
Expand Down

0 comments on commit 20b5fb7

Please sign in to comment.