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

Small fix in the error output #26004

Merged
merged 1 commit into from
Jun 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/ansible/modules/windows/win_copy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ Function Copy-File($src, $dest) {
if ($src_checksum -ne $dest_checksum) {
try {
Copy-Item -Path $src -Destination $dest -Force -WhatIf:$check_mode
$result.changed = $true
} catch {
Fail-Json $result "Failed to copy file $($_.Exception.Message)"
Fail-Json $result "Failed to copy file: $($_.Exception.Message)"
}
$result.changed = $true
}

# Verify the file we copied is the same
Expand Down