mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Merge pull request #530 from sethladd/more-error-message
more verbose error message
This commit is contained in:
commit
c675ec7d6e
@ -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 your Flutter project. '
|
||||
'Do not run this command from the root of your git clone '
|
||||
'of Flutter.');
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user