[flutter_tools] add more error context to tree shaker failure (#63446)

This commit is contained in:
Jonah Williams
2020-08-11 11:44:03 -07:00
committed by GitHub
parent d06c8fa54e
commit 49fac9a885

View File

@@ -66,7 +66,7 @@ class IconTreeShaker {
}
}
/// The MIME type for ttf fonts.
/// The MIME types for supported font sets.
static const Set<String> kTtfMimeTypes = <String>{
'font/ttf', // based on internet search
'font/opentype',
@@ -383,5 +383,7 @@ class IconTreeShakerException implements Exception {
final String message;
@override
String toString() => 'FontSubset error: $message';
String toString() => 'IconTreeShakerException: $message\n\n'
'To disable icon tree shaking, pass --no-tree-shake-icons to the requested '
'flutter build command';
}