Commit 58a7c548 authored by Carola Nitz's avatar Carola Nitz

VLCDropboxController: show error if the destinationpath is nil and we can't download

(cherry picked from commit 259e7848)
parent b23cde5c
Pipeline #144 failed with stage
in 0 seconds
...@@ -216,6 +216,11 @@ ...@@ -216,6 +216,11 @@
return; return;
} }
if (!destination) {
[self _handleError:[NSError errorWithDomain:NSLocalizedString(@"GDRIVE_ERROR_DOWNLOADING_FILE", nil) code:415 userInfo:nil]];
return;
}
// Need to replace all ' ' by '_' because it causes a `NSInvalidArgumentException ... destination path is nil` in the dropbox library. // Need to replace all ' ' by '_' because it causes a `NSInvalidArgumentException ... destination path is nil` in the dropbox library.
destination = [destination stringByReplacingOccurrencesOfString:@" " withString:@"_"]; destination = [destination stringByReplacingOccurrencesOfString:@" " withString:@"_"];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment