mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-22 15:14:21 +00:00
(fix) don't use removeItemAtPath - it is not available on Precise
This commit is contained in:
1 parent
a1e0f2767f
commit
557797d634
1 file changed
+1
-1
@@ -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!"];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user