(fix) don't use removeItemAtPath - it is not available on Precise

pull/207/head
Ludovic Marcotte 2016-05-10 15:51:32 -04:00
parent a1e0f2767f
commit 557797d634
1 changed files with 1 additions and 1 deletions

View File

@ -1150,7 +1150,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: NULL];
[[NSFileManager defaultManager] removeFileAtPath: p handler: nil];
return [NSException exceptionWithHTTPStatus: 500 /* Server Error */
reason: @"Could not write attachment to draft!"];
}