Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Allow publication task even if the Xcode reload AppleScript fails #270

Merged
merged 1 commit into from

2 participants

@flabrie

The Xcode reload script is not a critical task, and it usually fails on a Continuous Integration service like Jenkins. But when a reload error occurs, the publication task is not executed.

This code change the error level generated from the Xcode documentation reload
failure to a warning level to allow any publication task to be executed.

@flabrie flabrie Allow publication task even if the Xcode reload AppleScript fails
Change the error level generated from the Xcode documentation reload
failure to a warning level to allow any publication task to be executed.
0f10c11
@tomaz tomaz merged commit a60e74b into from
@tomaz
Owner

Merged, thanks for contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 30, 2012
  1. @flabrie

    Allow publication task even if the Xcode reload AppleScript fails

    flabrie authored
    Change the error level generated from the Xcode documentation reload
    failure to a warning level to allow any publication task to be executed.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 2 deletions.
  1. +1 −2  Generating/GBDocSetInstallGenerator.m
View
3  Generating/GBDocSetInstallGenerator.m
@@ -61,8 +61,7 @@ - (BOOL)generateOutputWithStore:(id)store error:(NSError **)error {
if (![script executeAndReturnError:&errorDict])
{
NSString *message = [errorDict objectForKey:NSAppleScriptErrorMessage];
- if (error) *error = [NSError errorWithCode:GBErrorDocSetXcodeReloadFailed description:@"Documentation set was installed, but couldn't reload documentation within Xcode." reason:message];
- return NO;
+ GBLogWarn(@"Warning: Documentation set was installed, but couldn't reload documentation within Xcode. %@", message)
}
return YES;
}
Something went wrong with that request. Please try again.