Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SoneeJohn committed Feb 19, 2020
1 parent 479ddb7 commit a1410e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion XCDYouTubeKit Tests/XCDYouTubeClientTestCase.m
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ - (void) testVideo3ReturnsSomePlayableStreams
XCTAssertTrue([streamErrors.allValues.firstObject.domain isEqual:NSURLErrorDomain]);
XCTAssertEqual(streamErrors.allValues.firstObject.code, NSURLErrorNetworkConnectionLost);
XCTAssertNotNil(streamErrors.allValues.firstObject.userInfo[NSLocalizedRecoverySuggestionErrorKey]);
XCTAssertTrue([streamErrors.allValues.firstObject.userInfo[NSLocalizedRecoverySuggestionErrorKey] isEqual:@"The file stored on the server might be incomplete."]);
XCTAssertTrue([streamErrors.allValues.firstObject.userInfo[NSLocalizedRecoverySuggestionErrorKey] isEqual:@"The file stored on the server may be incomplete."]);
[expectation fulfill];
}];
}];
Expand Down
2 changes: 1 addition & 1 deletion XCDYouTubeKit/XCDURLGETOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ - (void)finishWithError:(NSError *)error
{
//This might have failed because the file on YouTube's servers is incomplete. See https://github.com/0xced/XCDYouTubeKit/issues/456 for more info.
NSMutableDictionary *modifiedUserInfo = self.error.userInfo.mutableCopy;
modifiedUserInfo[NSLocalizedRecoverySuggestionErrorKey] = @"The file stored on the server might be incomplete.";
modifiedUserInfo[NSLocalizedRecoverySuggestionErrorKey] = @"The file stored on the server may be incomplete.";
self.error = [NSError errorWithDomain:(NSString *)self.error.domain code:self.error.code userInfo:modifiedUserInfo.copy];
}
XCDYouTubeLogError(@"URL GET operation finished with error: %@\nDomain: %@\nCode: %@\nUser Info: %@", self.error.localizedDescription, self.error.domain, @(self.error.code), self.error.userInfo);
Expand Down

0 comments on commit a1410e8

Please sign in to comment.