diff --git a/packages/flutter_tools/lib/src/reporting/crash_reporting.dart b/packages/flutter_tools/lib/src/reporting/crash_reporting.dart index a8fd8da753a..df68535ae59 100644 --- a/packages/flutter_tools/lib/src/reporting/crash_reporting.dart +++ b/packages/flutter_tools/lib/src/reporting/crash_reporting.dart @@ -69,7 +69,7 @@ class CrashReporter { /// Prints instructions for filing a bug about the crash. Future informUser(CrashDetails details, File crashFile) async { - _logger.printError('A crash report has been written to ${crashFile.path}.'); + _logger.printError('A crash report has been written to ${crashFile.path}'); _logger.printStatus('This crash may already be reported. Check GitHub for similar crashes.', emphasis: true); final String similarIssuesURL = GitHubTemplateCreator.toolCrashSimilarIssuesURL(details.error.toString()); diff --git a/packages/flutter_tools/test/general.shard/crash_reporting_test.dart b/packages/flutter_tools/test/general.shard/crash_reporting_test.dart index 5bb3fa36759..be8e2394375 100644 --- a/packages/flutter_tools/test/general.shard/crash_reporting_test.dart +++ b/packages/flutter_tools/test/general.shard/crash_reporting_test.dart @@ -100,7 +100,7 @@ void main() { expect(logger.statusText, contains('NoPIIFakeDoctorText')); expect(logger.statusText, isNot(contains('Ignored'))); expect(logger.statusText, contains('https://github.com/flutter/flutter/issues/new')); - expect(logger.errorText, contains('A crash report has been written to ${file.path}.')); + expect(logger.errorText.trim(), 'A crash report has been written to ${file.path}'); }); testWithoutContext('suppress analytics', () async {