mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Mark InvalidInput errors as critical
This commit is contained in:
1 parent
b68c409a6b
commit
87a39e1995
1 file changed
+1
-1
@@ -237,8 +237,8 @@ export class CompilerError extends Error {
|
||||
return this.details.some((detail) => {
|
||||
switch (detail.severity) {
|
||||
case ErrorSeverity.Invariant:
|
||||
return true;
|
||||
case ErrorSeverity.InvalidInput:
|
||||
return true;
|
||||
case ErrorSeverity.Todo:
|
||||
case ErrorSeverity.UnsafeInput:
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user