[swift-api-dump] Improve failure diagnostics slightly

This commit is contained in:
Doug Gregor
2016-04-15 13:20:39 -07:00
parent a41c9eb8e6
commit 4d5dfffbaa

View File

@@ -203,14 +203,14 @@ def collect_frameworks(sdk):
(exitcode, sdk_path, err) = run_command(
["xcrun", "--show-sdk-path", "-sdk", sdk])
if exitcode != 0:
print('error: framework collection failed with error %d' % (exitcode))
print('error: framework collection failed to find SDK path for %s with error %d' % (sdk, exitcode))
return ()
sdk_path = sdk_path.rstrip()
(exitcode, sdk_version, err) = run_command(
["xcrun", "--show-sdk-version", "-sdk", sdk])
if exitcode != 0:
print('error: framework collection failed with error %d' % (exitcode))
print('error: framework collection failed to find SDK version for %s with error %d' % (sdk, exitcode))
return ()
sdk_version = sdk_version.rstrip()