Fix error reporting in `CopyFileWithTar` Upstream-commit: 6de38ebc4dfbea0f4a805a6baee109b4c830c272 Component: engine