Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLC-iOS
Commits
cc032a80
Commit
cc032a80
authored
Nov 02, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DropboxController: tell the user if we encounter an error
parent
a85b41b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
AspenProject/VLCDropboxController.m
AspenProject/VLCDropboxController.m
+10
-0
No files found.
AspenProject/VLCDropboxController.m
View file @
cc032a80
...
...
@@ -134,6 +134,7 @@
-
(
void
)
restClient
:(
DBRestClient
*
)
client
loadMetadataFailedWithError
:(
NSError
*
)
error
{
APLog
(
@"DBMetadata download failed with error %i"
,
error
.
code
);
[
self
_handleError
:
error
];
}
-
(
void
)
restClient
:(
DBRestClient
*
)
client
loadedFile
:(
NSString
*
)
localPath
...
...
@@ -152,6 +153,7 @@
-
(
void
)
restClient
:(
DBRestClient
*
)
client
loadFileFailedWithError
:(
NSError
*
)
error
{
APLog
(
@"DBFile download failed with error %i"
,
error
.
code
);
[
self
_handleError
:
error
];
if
([
self
.
delegate
respondsToSelector
:
@selector
(
operationWithProgressInformationStopped
)])
[
self
.
delegate
operationWithProgressInformationStopped
];
_downloadInProgress
=
NO
;
...
...
@@ -175,6 +177,7 @@
-
(
void
)
restClient
:(
DBRestClient
*
)
restClient
loadStreamableURLFailedWithError
:(
NSError
*
)
error
{
APLog
(
@"loadStreamableURL failed with error %i"
,
error
.
code
);
[
self
_handleError
:
error
];
}
#pragma mark - DBSession delegate
...
...
@@ -218,4 +221,11 @@
return
0
;
}
#pragma mark - user feedback
-
(
void
)
_handleError
:(
NSError
*
)
error
{
UIAlertView
*
alert
=
[[
UIAlertView
alloc
]
initWithTitle
:[
NSString
stringWithFormat
:
NSLocalizedString
(
@"ERROR_NUMBER"
,
@""
),
error
.
code
]
message
:
error
.
localizedDescription
delegate
:
self
cancelButtonTitle
:
NSLocalizedString
(
@"BUTTON_CANCEL"
,
@""
)
otherButtonTitles
:
nil
];
[
alert
show
];
}
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment