mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Xcode error message should be nicer.
This commit is contained in:
@@ -102,6 +102,17 @@ var execFileSyncOrThrow = function (file, args, opts) {
|
||||
if (childProcess.stdout) {
|
||||
message = message + "\n" + childProcess.stdout + "\n";
|
||||
}
|
||||
|
||||
// XXX special case if Cordova complains about Xcode
|
||||
var errorMatch =
|
||||
message.match(/Cordova can only run in Xcode version/gm);
|
||||
|
||||
if (file === localCordova && errorMatch) {
|
||||
process.stderr.write(
|
||||
'Xcode 4.6 or greater is required to run iOS commands.\n');
|
||||
process.exit(2);
|
||||
}
|
||||
|
||||
throw new Error(message);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user