iOS: Make the error message on flutter ios --init more descriptive

This commit is contained in:
Chinmay Garde
2016-01-26 13:53:58 -08:00
parent bf3594c3ee
commit c66e00f4a7

View File

@@ -122,7 +122,9 @@ class IOSCommand extends FlutterCommand {
// Step 2: Inflate the archive into the user project directory
bool result = await _inflateXcodeArchive(xcodeprojPath, archiveBytes);
if (!result) {
print("Could not fetch the Xcode project from the cloud...");
print("Error: Could not init the Xcode project: the 'ios' directory already exists.");
print("To proceed, remove the 'ios' directory and try again.");
print("Warning: You may have made manual changes to files in the 'ios' directory.");
return -1;
}