fix: Update validation message (#315)
This commit is contained in:
@@ -61,11 +61,11 @@ class ShorebirdFlutterValidator extends Validator {
|
||||
final pathFlutterVersion = await _pathFlutterVersion();
|
||||
|
||||
if (shorebirdFlutterVersion != pathFlutterVersion) {
|
||||
final message = """
|
||||
Shorebird Flutter and the Flutter on your path are different versions.
|
||||
final message = '''
|
||||
The version of Flutter that Shorebird includes and the Flutter on your path are different.
|
||||
\tShorebird Flutter: $shorebirdFlutterVersion
|
||||
\tSystem Flutter: $pathFlutterVersion
|
||||
This can cause unexpected behavior if the version gap is wide. If you're seeing this unexpectedly, please let us know on Shorebird discord!""";
|
||||
This can cause unexpected behavior if you are switching between the tools and the version gap is wide. If you have any trouble, please let us know on Shorebird discord.''';
|
||||
|
||||
issues.add(
|
||||
ValidationIssue(
|
||||
|
||||
@@ -167,8 +167,9 @@ Tools • Dart 2.19.6 • DevTools 2.20.1
|
||||
expect(results.first.severity, ValidationIssueSeverity.warning);
|
||||
expect(
|
||||
results.first.message,
|
||||
contains('Shorebird Flutter and the Flutter on your path are'
|
||||
' different versions'),
|
||||
contains(
|
||||
'The version of Flutter that Shorebird includes and the Flutter on your path are different',
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user