Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Fix issue with errors being swallowed in child compilations #750

Merged
merged 4 commits into from
Mar 26, 2019

Conversation

ganemone
Copy link
Contributor

This ensures we get error logs whenever a compilation fails. It also adds a regression test
in the form of snapshots of the logger calls.

@@ -26,15 +26,39 @@ const {
const mergeChunkMetadata = require('./merge-chunk-metadata');
const loadFusionRC = require('./load-fusionrc.js');

function getErrors(info) {
let errors = [].concat(info.errors);
if (info.children.length) {
Copy link
Member

Choose a reason for hiding this comment

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

Ah, good catch!

AlexMSmithCA
AlexMSmithCA previously approved these changes Mar 25, 2019
@@ -3,6 +3,7 @@

const path = require('path');
const testEnvs = require('../errors.js');
const t = require('assert');
Copy link
Member

Choose a reason for hiding this comment

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

(Minor) linter is complaining that this is never used:

$ eslint .
--
  | Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration .
  | { parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.
  |  
  | /fusion-cli/test/e2e/missing-module/test.js
  | 6:7  error  't' is assigned a value but never used  no-unused-vars
  |  
  | ✖ 1 problem (1 error, 0 warnings)

@ganemone
Copy link
Contributor Author

!merge

@old-fusion-bot old-fusion-bot bot merged commit b2ab925 into fusionjs:master Mar 26, 2019
@old-fusion-bot
Copy link

Triggered Fusion.js build verification: https://buildkite.com/uberopensource/fusion-release-verification/builds/1793

This was referenced Apr 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants