From e5693fe447a7c6dd8fcc55e33acbcef77a0c3284 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Wed, 23 Nov 2016 11:18:08 +0100 Subject: [PATCH] Return an error if a file can't be copied in a save as operation. --- MP42/MP42File.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MP42/MP42File.m b/MP42/MP42File.m index 9a2ec24..f25346f 100644 --- a/MP42/MP42File.m +++ b/MP42/MP42File.m @@ -671,6 +671,10 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) { } else { success = NO; + if (outError) { + *outError = MP42Error(@"The file could not be saved.", @"You do not have sufficient permissions for this operation.", 101); + [_logger writeErrorToLog:*outError]; + } } } else {