raphinesse commented on a change in pull request #1186:
URL: https://github.com/apache/cordova-ios/pull/1186#discussion_r745337201
##########
File path: bin/templates/scripts/cordova/lib/versions.js
##########
@@ -49,9 +49,9 @@ exports.get_apple_xcode_version = () => {
return spawn('xcodebuild', ['-version'])
.then(output => {
const versionMatch = /Xcode (.*)/.exec(output);
-
- if (!versionMatch) return Promise.reject(output);
-
+ if (!versionMatch) {
+ throw new CordovaError('Could not determine Xcode version');
Review comment:
Good Point! I included the output in the error message.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]