File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,9 @@ class BoundSdkSource extends BoundSource {
95
95
/// contain the package.
96
96
String _verifiedPackagePath (String name) {
97
97
if (! flutter.isAvailable) {
98
- throw new PackageNotFoundException ('The Flutter SDK is not available.' );
98
+ throw new PackageNotFoundException ("The Flutter SDK is not available.\n "
99
+ "Flutter users should run `flutter packages get` instead of `pub "
100
+ "get`." );
99
101
}
100
102
101
103
var path = flutter.packagePath (name);
Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ main() {
96
96
}).create ();
97
97
await pubCommand (command,
98
98
error: 'The Flutter SDK is not available.\n '
99
+ 'Flutter users should run `flutter packages get` instead of '
100
+ '`pub get`.\n '
99
101
'Depended on by:\n '
100
102
'- myapp' ,
101
103
exitCode: exit_codes.UNAVAILABLE );
You can’t perform that action at this time.
0 commit comments