{"comment":{"url":"https://api.github.com/repos/costingalan/windows-openstack-imaging-tools/comments/16679541","html_url":"https://github.com/costingalan/windows-openstack-imaging-tools/commit/c50990d13f05f0b9e0a9d4f26d2dd7869075635a#commitcomment-16679541","id":16679541,"user":{"login":"ader1990","id":1412442,"avatar_url":"https://avatars.githubusercontent.com/u/1412442?v=3","gravatar_id":"","url":"https://api.github.com/users/ader1990","html_url":"https://github.com/ader1990","followers_url":"https://api.github.com/users/ader1990/followers","following_url":"https://api.github.com/users/ader1990/following{/other_user}","gists_url":"https://api.github.com/users/ader1990/gists{/gist_id}","starred_url":"https://api.github.com/users/ader1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ader1990/subscriptions","organizations_url":"https://api.github.com/users/ader1990/orgs","repos_url":"https://api.github.com/users/ader1990/repos","events_url":"https://api.github.com/users/ader1990/events{/privacy}","received_events_url":"https://api.github.com/users/ader1990/received_events","type":"User","site_admin":false},"position":10,"line":274,"path":"WinImageBuilder.psm1","commit_id":"c50990d13f05f0b9e0a9d4f26d2dd7869075635a","created_at":"2016-03-14T13:07:33Z","updated_at":"2016-03-14T13:07:33Z","body":"copy-item is a PS cmdlet, it cannot be tested with lastexitcode for success. I suggest here to throw the error on the else branch of if ((Test-Path $src)). The error message should be: \"ERROR: The windows-curtin-hooks module is not present, please execute \"\"git submodule update --init\""}}