-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New-ServiceControlInstance not returning/bubbling errors correctly #1565
Comments
|
I wonder if this is because we pass I'll dig into it. |
|
Hey @WilliamBZA , I believe it's related to not throwing errors when they occur from inside the Add Function on the UnattendServiceControlInstaller class. It looks like when errors occur they are simply be logged. ServiceControl/src/ServiceControlInstaller.Engine/Unattended/UnattendServiceControlInstaller.cs Lines 33 to 96 in 6635062
If you can verify this is the case i think the signature of the function should remove the boolean and instead throw exceptions instead on errors. |
I'm currently trying to automate the installation and management of Service Control instances and notice that it seems the New-ServiceControlInstance Cmdlet is not returning errors back to the caller (my powershell script) correctly causing me to be unable to determine if the new instance was created successfully or failed because of errors or prequisites.
When running
I see an error stating MSMQ is not installed as shown below
By checking my error variable named MyError that was passed into the cmdlet is always returned as an ArrayList of count 0.
The text was updated successfully, but these errors were encountered: