Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix overly specific detection of non-UTF8 files in analyzer bot. (#56295
) An upcoming Dart SDK change (dart-lang/sdk@fa2fd41) changes the precise text of the exception generated by `utf8.decode` if a non-UTF8 file is found. This is causing a breakage in the Dart team's `flutter-analyze` bot (and will presumably cause a breakage in the corresponding Flutter bot as soon as this change is rolled into Flutter). To avoid this breakage, the bot shouldn't rely on the exact exception text; it is sufficient to simply catch a FormatException.
- Loading branch information