Skip to content

Commit

Permalink
added workaround according to BoltsFramework#102
Browse files Browse the repository at this point in the history
  • Loading branch information
kwkhaw committed Aug 21, 2015
1 parent c6273b7 commit 412f62a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Bolts/Common/BFTask.m
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,11 @@ - (NSError *)error {
}

- (void)setError:(NSError *)error {
if (!error) {
NSLog(@"Bolts bug: setting nil error (their bug): %s", __PRETTY_FUNCTION__);
return;
}

if (![self trySetError:error]) {
[NSException raise:NSInternalInconsistencyException
format:@"Cannot set the error on a completed task."];
Expand Down

0 comments on commit 412f62a

Please sign in to comment.