Unverified Commit 49fac9a8 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

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

parent d06c8fa5
......@@ -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';
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment