more verbose error message

undo auto format
This commit is contained in:
Seth Ladd 2015-11-20 15:31:33 -08:00
parent 19438d80de
commit 9496de7c80

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 a Flutter project. '
'Do not run this command from the root of your git clone '
'of Flutter.');
return 1;
}
}