Skip to content

Commit

Permalink
fix: Update validation message (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
eseidel authored Apr 19, 2023
1 parent dcce46f commit a6e25d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
),
);
},
);
Expand Down

0 comments on commit a6e25d4

Please sign in to comment.