Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build-command): report exit code 1 when compilation fails #239

Merged
merged 1 commit into from
Jul 13, 2020

Conversation

erezrokah
Copy link
Contributor

Related to netlify/cli#627 (comment)

netlify-lambda build functions fails silently if there are complication errors

@erezrokah erezrokah added the type: bug code to address defects in shipped code label Jul 13, 2020
@erezrokah erezrokah requested a review from ehmicky July 13, 2020 14:06
@@ -157,6 +157,10 @@ exports.run = function(dir, additionalConfig) {
if (err) {
return reject(err);
}
const errors = stats.compilation.errors || []
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix. Other changes are to facilitate the tests

@erezrokah erezrokah merged commit 4f05353 into master Jul 13, 2020
@erezrokah erezrokah deleted the fix/report_webpack_errors branch July 13, 2020 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants