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

more verbose error message
This commit is contained in:
Seth Ladd 2015-11-23 09:50:29 -08:00
commit c675ec7d6e

View File

@ -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;
}
}