forked from EVOgeek/Vmeda.Online
MOBILE-3039 core: Fix failed downloads loading forever
This commit is contained in:
parent
7c09d55ea8
commit
699813c640
@ -2573,7 +2573,7 @@ export class CoreFilepoolProvider {
|
||||
// Some Android devices restrict the amount of usable storage using quotas.
|
||||
// If this quota would be exceeded by the download, it throws an exception.
|
||||
// We catch this exception here, and report a meaningful error message to the user.
|
||||
if (errorObject instanceof FileTransferError && errorObject.exception.includes('EDQUOT')) {
|
||||
if (errorObject instanceof FileTransferError && errorObject.exception && errorObject.exception.includes('EDQUOT')) {
|
||||
errorMessage = 'core.course.insufficientavailablequota';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user