mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix exception message formatting (flutter/engine#3332)
Add a couple missing newlines.
This commit is contained in:
parent
cd79979fbf
commit
5952e3664d
@ -325,7 +325,7 @@ class RepositoryLibPngLicenseFile extends RepositorySingleLicenseFile {
|
||||
if (!contents.contains('COPYRIGHT NOTICE, DISCLAIMER, and LICENSE:') ||
|
||||
!contents.contains('png') ||
|
||||
!contents.contains('END OF COPYRIGHT NOTICE, DISCLAIMER, and LICENSE.'))
|
||||
throw 'unexpected libpng license file contents:\n----8<----$contents\n----<8----';
|
||||
throw 'unexpected libpng license file contents:\n----8<----\n$contents\n----<8----';
|
||||
}
|
||||
|
||||
@override
|
||||
@ -345,7 +345,7 @@ class RepositoryBlankLicenseFile extends RepositorySingleLicenseFile {
|
||||
static void _verifyLicense(fs.TextFile io, String sanityCheck) {
|
||||
final String contents = io.readString();
|
||||
if (!contents.contains(sanityCheck))
|
||||
throw 'unexpected file contents; wanted "$sanityCheck", but got:\n----8<----$contents\n----<8----';
|
||||
throw 'unexpected file contents; wanted "$sanityCheck", but got:\n----8<----\n$contents\n----<8----';
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user