Skip to content

Commit

Permalink
fix(formatElmCompilerErrors.js): Fix the formatter for the errors
Browse files Browse the repository at this point in the history
  • Loading branch information
halfzebra committed Sep 3, 2018
1 parent 5434092 commit 1985266
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/utils/formatElmCompilerErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ if (isBrowser) {
}

function stripRedundantInfo(error) {
return error.replace(
/Module build failed: Error: Compiler process exited with error Compilation failed/g,
''
return (
error
// String the error message from the loader.
.replace(/Module build failed.*\nError.*\n/gm, '')
// Strip compilation progress-bar.
.replace(/\[=+\]\s-\s\d\s\/\s\d[\r\n\s]?/gm, '\n')
);
}

Expand Down
Empty file added template/src/Child.elm
Empty file.

0 comments on commit 1985266

Please sign in to comment.