Skip to content

Incorrect handling of an error condition #8

@leshkinski

Description

@leshkinski

Catch block should be using 'Throw' to catch the errors instead of 'Write-Verbose' to properly handle error conditions. As it is, an invalid set of parameters will cause a failure, which is not properly handled by DSC:

https://github.com/rsWinAutomationSupport/rsScheduledTask/blob/staging/DSCResources/RS_rsScheduledTask/RS_rsScheduledTask.psm1#L278

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions