Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
VladislavJevremovic committed Oct 8, 2019
1 parent 587ed4d commit f1fe71f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ - (void)sendTweetWithText:(NSString *)tweetText images:(NSArray<NSData *> *)imag
return;
} else if (imageData.length > imageMaxFileSize) {
NSLog(@"Error: image data is too big");
NSError *sizeError = [NSError errorWithDomain:TWTRErrorDomain code:0 userInfo:@{NSLocalizedDescriptionKey: @"Error: image data is bigger than 5 MB"}];
NSError *sizeError = [NSError errorWithDomain:TWTRErrorDomain code:0 userInfo:@{NSLocalizedDescriptionKey: @"Error: image data is bigger than 15 MB"}];
completion(nil, sizeError);
return;
}
Expand Down

0 comments on commit f1fe71f

Please sign in to comment.