MOBILE-3039 core: Fix failed downloads loading forever

main
Dani Palou 2019-05-21 10:21:40 +02:00
parent 7c09d55ea8
commit 699813c640
1 changed files with 1 additions and 1 deletions

View File

@ -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';
}