mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
more verbose error message
undo auto format
This commit is contained in:
parent
19438d80de
commit
9496de7c80
@ -50,8 +50,10 @@ abstract class FlutterCommand extends Command {
|
||||
Future<int> run() async {
|
||||
if (requiresProjectRoot) {
|
||||
if (!FileSystemEntity.isFileSync('pubspec.yaml')) {
|
||||
stderr.writeln('No pubspec.yaml file found. '
|
||||
'This command should be run from the root of a project.');
|
||||
stderr.writeln('Error: No pubspec.yaml file found. '
|
||||
'This command should be run from the root of a Flutter project. '
|
||||
'Do not run this command from the root of your git clone '
|
||||
'of Flutter.');
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user