mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-20 20:46:58 +02:00
Add more details when failing to copy assets upon publish
This commit is contained in:
parent
60bd8bc754
commit
54ffbddcd8
1 changed files with 3 additions and 1 deletions
|
@ -126,7 +126,9 @@ const rsync = new Rsync()
|
||||||
|
|
||||||
rsync.execute((error, code, cmd) => {
|
rsync.execute((error, code, cmd) => {
|
||||||
if (code !== 0) {
|
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);
|
shell.exit(1);
|
||||||
} else {
|
} else {
|
||||||
shell.cd(path.join('build', `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`));
|
shell.cd(path.join('build', `${PROJECT_NAME}-${DEPLOYMENT_BRANCH}`));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue