Fix line-wrapping in flutter create error message. (#150325)

This commit is contained in:
Ian Hickson
2024-09-26 10:04:03 -07:00
committed by GitHub
parent a0e75cd309
commit 20bc0a9cb8
2 changed files with 18 additions and 13 deletions

View File

@@ -838,9 +838,15 @@ void main() {
<String>['--no-pub', '--template=plugin', '--project-name', 'xyz-xyz', '--platforms', 'android,ios',],
<String>[],
),
allOf(
throwsToolExit(message: '"xyz-xyz" is not a valid Dart package name.'),
throwsToolExit(message: 'Try "xyz_xyz" instead.'),
throwsToolExit(message:
'"xyz-xyz" is not a valid Dart package name. Try "xyz_xyz" instead.\n'
'\n'
'The name should consist of lowercase words separated by underscores, '
'"like_this". Use only basic Latin letters and Arabic digits: [a-z0-9_], '
'and ensure the name is a valid Dart identifier (i.e. it does not start '
'with a digit and is not a reserved word).\n'
'\n'
'See https://dart.dev/tools/pub/pubspec#name for more information.'
),
);
});