This repository has been archived by the owner on Jan 16, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop burying stderr output within exec
The exec util buries stderr output. This makes it difficult to understand why your script is failing. Example: Here's how it currently works. Notice there is nothing specific about what went wrong in the error output: ```sh npm run storybook:publish -- --bucket-path=XXXXXXXXXXXXXX => Building storybook for: web executing: build-storybook -o out8599 => Deploying storybook executing: aws --profile default s3 sync out8599 s3://XXXXXXXXXXXXXX /Users/dandean/Code/splice/web/node_modules/@storybook/storybook-deployer/src/utils.js:19 throw new Error( ^ Error: Exec code(255) on executing: aws --profile default s3 sync out8599 s3://XXXXXXXXXXXXXX undefined ``` Result: Here's what happens with this patch: ```sh npm run storybook:publish -- --bucket-path=XXXXXXXXXXXXXX => Building storybook for: web executing: build-storybook -o out8599 => Deploying storybook executing: aws --profile default s3 sync out8599 s3://XXXXXXXXXXXXXX The config profile (default) could not be found /Users/dandean/Code/splice/web/node_modules/@storybook/storybook-deployer/src/utils.js:19 throw new Error( ^ Error: Exec code(255) on executing: aws --profile default s3 sync out8599 s3://XXXXXXXXXXXXXX undefined ``` We can now see the source of the error as indicated by the command which we executed: > The config profile (default) could not be found
- Loading branch information