mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-08 08:21:23 +00:00
(fix) don't use removeItemAtPath - it is not available on Precise
Conflicts: SoObjects/Mailer/SOGoDraftObject.m
This commit is contained in:
@@ -1160,7 +1160,7 @@ static NSString *userAgent = nil;
|
||||
pmime = [self pathToAttachmentWithName: [NSString stringWithFormat: @".%@.mime", name]];
|
||||
if (![[mimeType dataUsingEncoding: NSUTF8StringEncoding] writeToFile: pmime atomically: YES])
|
||||
{
|
||||
[[NSFileManager defaultManager] removeItemAtPath: p error: nil];
|
||||
[[NSFileManager defaultManager] removeFileAtPath: p handler: nil];
|
||||
return [NSException exceptionWithHTTPStatus: 500 /* Server Error */
|
||||
reason: @"Could not write attachment to draft!"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user