From 5952e3664dc2e1feb4bf211f4372debab5bec7a9 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Tue, 10 Jan 2017 17:28:04 -0800 Subject: [PATCH] Fix exception message formatting (flutter/engine#3332) Add a couple missing newlines. --- engine/src/flutter/tools/licenses/lib/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/tools/licenses/lib/main.dart b/engine/src/flutter/tools/licenses/lib/main.dart index 8cc39f3f820..44b59854255 100644 --- a/engine/src/flutter/tools/licenses/lib/main.dart +++ b/engine/src/flutter/tools/licenses/lib/main.dart @@ -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