Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
1ede6a8d
Commit
1ede6a8d
authored
7 years ago
by
Dan Abramov
Committed by
GitHub
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Only show first error (#2125)
parent
3521eb7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-dev-utils/formatWebpackMessages.js
+5
-0
packages/react-dev-utils/formatWebpackMessages.js
with
5 additions
and
0 deletions
+5
-0
packages/react-dev-utils/formatWebpackMessages.js
+
5
-
0
View file @
1ede6a8d
...
@@ -177,6 +177,11 @@ function formatWebpackMessages(json) {
...
@@ -177,6 +177,11 @@ function formatWebpackMessages(json) {
// preceding a much more useful Babel syntax error.
// preceding a much more useful Babel syntax error.
result
.
errors
=
result
.
errors
.
filter
(
isLikelyASyntaxError
);
result
.
errors
=
result
.
errors
.
filter
(
isLikelyASyntaxError
);
}
}
// Only keep the first error. Others are often indicative
// of the same problem, but confuse the reader with noise.
if
(
result
.
errors
.
length
>
1
)
{
result
.
errors
.
length
=
1
;
}
return
result
;
return
result
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment