Skip to content

Robocopy error code not included when failing during test #24

@magnustomte

Description

@magnustomte

The following snippet in Test-TargetResource:

    else
    {
        throw "robocopy returned with errors! Exit code: $result! More info here:https://support.microsoft.com/en-us/kb/954404"
    }

Should be:

    else
    {
        throw "robocopy returned with errors! Exit code: $LASTEXITCODE! More info here:https://support.microsoft.com/en-us/kb/954404"
    }

as it is in the Set-TargetResource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug.in progressThe issue is being actively worked on by someone.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions