From ec40df9576d6020dd56820b9b5aff8f828706e49 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Fri, 25 Sep 2020 21:27:22 -0700 Subject: [PATCH] [flutter_tools] dont mention git clone of flutter in run message (#66691) This message is displayed if we do not find a pubspec.yaml 99% of the time this additional advice is going to have nothing to do with the actual error. Just remove it because it will cause more confusion than it could clear up --- packages/flutter_tools/lib/src/base/user_messages.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/flutter_tools/lib/src/base/user_messages.dart b/packages/flutter_tools/lib/src/base/user_messages.dart index 09a3a3f694..e05a81d9db 100644 --- a/packages/flutter_tools/lib/src/base/user_messages.dart +++ b/packages/flutter_tools/lib/src/base/user_messages.dart @@ -264,8 +264,7 @@ class UserMessages { String get flutterNoConnectedDevices => 'No connected devices.'; String get flutterNoPubspec => 'Error: No pubspec.yaml file found.\n' - 'This command should be run from the root of your Flutter project.\n' - 'Do not run this command from the root of your git clone of Flutter.'; + 'This command should be run from the root of your Flutter project.'; String flutterTargetFileMissing(String path) => 'Target file "$path" not found.'; String get flutterBasePatchFlagsExclusive => 'Error: Only one of --baseline, --patch is allowed.'; String get flutterBaselineRequiresTraceFile => 'Error: --baseline requires --compilation-trace-file to be specified.';