Skip to content
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

Robocopy error code not included when failing during test #24

Open
magnustomte opened this issue Jul 5, 2016 · 1 comment
Open

Robocopy error code not included when failing during test #24

magnustomte opened this issue Jul 5, 2016 · 1 comment
Labels
bug The issue is a bug. in progress The issue is being actively worked on by someone.

Comments

@magnustomte
Copy link

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.

@Arturas-K
Copy link
Contributor

@magnustomte good spot thanks.
Adding this fix to #23

@kwirkykat kwirkykat added bug The issue is a bug. in progress The issue is being actively worked on by someone. labels Aug 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. in progress The issue is being actively worked on by someone.
Projects
None yet
Development

No branches or pull requests

3 participants