mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Mark InvalidInput errors as critical
This commit is contained in:
@@ -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