We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In PoshRSJob.Types.ps1xml, the following reference to HadErrors is invalid:
<Types> <Type> <Name>PoshRS.PowerShell.RSJob</Name> <Members> <ScriptProperty> <Name>HasErrors</Name> <GetScriptBlock> $this.innerjob.HadErrors </GetScriptBlock> </ScriptProperty> </Members> </Type>
Unfortunately, HadErrors wasn't introduced until v3 - System.Management.Automation.PowerShell
There reference causes the following error: Property 'HadErrors' cannot be found on this object. Make sure that it exists.
The text was updated successfully, but these errors were encountered:
That's unfortunate. I guess I'll throw in a try/catch to handle that issue.
Sorry, something went wrong.
Not sure if it's the best way but this seems to work:
<Type> <Name>PoshRS.PowerShell.RSJob</Name> <Members> <ScriptProperty> <Name>HasErrors</Name> <GetScriptBlock> if ($psversiontable.psversion.major -ge 3){ $this.innerjob.HadErrors }else{ ($this.innerjob.Streams.Error -ne $null) } </GetScriptBlock> </ScriptProperty> </Members> </Type>
Various bug fixes/feature requests
ace867b
#64 #66 #67 #61 #63 fixed
The latest update should resolve this. Can you test and verify for me?
I'll take a look at it and get back with you.
This seems to be working.Closing it.
proxb
No branches or pull requests
In PoshRSJob.Types.ps1xml, the following reference to HadErrors is invalid:
Unfortunately, HadErrors wasn't introduced until v3 - System.Management.Automation.PowerShell
There reference causes the following error:
Property 'HadErrors' cannot be found on this object. Make sure that it exists.
The text was updated successfully, but these errors were encountered: