From 8ce6bd19315d8abeb7611b8388e36444d5e92f9f Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 24 Oct 2014 11:27:18 +0200 Subject: [PATCH] Rewrote an error message. --- MP42/MP42File.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MP42/MP42File.m b/MP42/MP42File.m index 90cd02f..d2fea4a 100644 --- a/MP42/MP42File.m +++ b/MP42/MP42File.m @@ -710,17 +710,17 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) { - (BOOL)updateMP4FileWithAttributes:(NSDictionary *)attributes error:(NSError **)outError { BOOL noErr = YES; - // Organize the alternate groups - if ([[attributes valueForKey:MP42OrganizeAlternateGroups] boolValue]) - [self organizeAlternateGroups]; - // Open the mp4 file if (![self startWriting]) { if (outError) - *outError = MP42Error(@"Unable to open the file", nil, 100); + *outError = MP42Error(@"The file could not be saved.", @"You may do not have sufficient permissions for this operation.", 101); return NO; } + // Organize the alternate groups + if ([[attributes valueForKey:MP42OrganizeAlternateGroups] boolValue]) + [self organizeAlternateGroups]; + // Delete tracks for (MP42Track *track in _tracksToBeDeleted) [self removeMuxedTrack:track];