From 4c14ee6e2895d369c21c54cd99303386d7b682a7 Mon Sep 17 00:00:00 2001 From: Ibby Date: Tue, 21 Mar 2017 23:05:38 -0400 Subject: [PATCH] fix(image-loader): ignore errors when maintaining cache size --- src/providers/image-loader.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/providers/image-loader.ts b/src/providers/image-loader.ts index 5e66193..4287c03 100644 --- a/src/providers/image-loader.ts +++ b/src/providers/image-loader.ts @@ -354,12 +354,7 @@ export class ImageLoader { // delete the file then process next file if necessary this.file.removeFile(this.file.cacheDirectory + this.config.cacheDirectoryName, file.name) .then(() => next()) - .catch((e: FileError) => { - next(); - if (e.code != 1) { // ignore File not found error - this.throwError('Error deleting file from cache to maintain size. ', e) - } - }); + .catch(() => next()); // ignore errors, nothing we can do about it } };