Commit c675ec7d authored by Seth Ladd's avatar Seth Ladd

Merge pull request #530 from sethladd/more-error-message

more verbose error message
parents 94c9b232 84cfcde1
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment