Add more details when failing to copy assets upon publish

This commit is contained in:
Joel Marcey 2017-12-19 12:50:22 -08:00
parent 60bd8bc754
commit 54ffbddcd8

View file

@ -126,7 +126,9 @@ const rsync = new Rsync()
rsync.execute((error, code, cmd) => {
if (code !== 0) {
shell.echo(`Error: Copying build assets failed`);
shell.echo(
`Error: Copying build assets failed with code ${code} and error '${error}'`
);
shell.exit(1);
} else {
shell.cd(path.join('build', `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`));