From 54ffbddcd8bad1237681f0bb13a562a9a6a9b983 Mon Sep 17 00:00:00 2001 From: Joel Marcey Date: Tue, 19 Dec 2017 12:50:22 -0800 Subject: [PATCH] Add more details when failing to copy assets upon publish --- lib/publish-gh-pages.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/publish-gh-pages.js b/lib/publish-gh-pages.js index 358fb878d7..30a3b3345c 100755 --- a/lib/publish-gh-pages.js +++ b/lib/publish-gh-pages.js @@ -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}`));