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

Unified Diff: ui/file_manager/file_manager/background/js/file_operation_util.js

Issue 2914773002: Add dev console logging for file copy failure. (Closed)
Patch Set: Fix nit. Created 3 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/background/js/file_operation_util.js
diff --git a/ui/file_manager/file_manager/background/js/file_operation_util.js b/ui/file_manager/file_manager/background/js/file_operation_util.js
index 1a7b337b7b02412de569d22aae0b9138b4db8859..4b1ae2a30b7777c263c147bf93fa72301039d2d8 100644
--- a/ui/file_manager/file_manager/background/js/file_operation_util.js
+++ b/ui/file_manager/file_manager/background/js/file_operation_util.js
@@ -411,6 +411,9 @@ fileOperationUtil.copyTo = function(
break;
case 'error':
+ console.error(
+ 'copy failed. sourceUrl: ' + source.toURL() +
+ ' error: ' + status.error);
chrome.fileManagerPrivate.onCopyProgress.removeListener(
onCopyProgress);
errorCallback(util.createDOMError(status.error));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698