Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: ui/file_manager/image_loader/request.js

Issue 2675193005: Remove rejected promise of PiexLoader which is not caught. (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/file_manager/image_loader/piex_loader.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/image_loader/request.js
diff --git a/ui/file_manager/image_loader/request.js b/ui/file_manager/image_loader/request.js
index 0f55e1a65838ad7edaebdbfb7f04bbd9d980bd15..af197cbc4abb2cba136be10fbd0742df9031ec08 100644
--- a/ui/file_manager/image_loader/request.js
+++ b/ui/file_manager/image_loader/request.js
@@ -261,8 +261,8 @@ ImageRequest.prototype.downloadOriginal_ = function(onSuccess, onFailure) {
this.image_.src = url;
this.request_.orientation = data.orientation;
this.request_.colorSpace = data.colorSpace;
- }.bind(this), function(error) {
- console.error('PiexLoaderError: ', error);
+ }.bind(this), function() {
+ // The error has already been logged in PiexLoader.
onFailure();
});
return;
« no previous file with comments | « ui/file_manager/image_loader/piex_loader.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698