cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [3/3] spec commit: CB-6928: Minor fix to error reporting in previous commit
Date Mon, 14 Jul 2014 14:55:28 GMT
CB-6928: Minor fix to error reporting in previous commit


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/981c889e
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/981c889e
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/981c889e

Branch: refs/heads/master
Commit: 981c889e185d30d524b7308bb8a629192cb74bf9
Parents: d120441
Author: Ian Clelland <iclelland@chromium.org>
Authored: Mon Jul 14 10:54:17 2014 -0400
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Mon Jul 14 10:54:32 2014 -0400

----------------------------------------------------------------------
 www/file/index.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/981c889e/www/file/index.js
----------------------------------------------------------------------
diff --git a/www/file/index.js b/www/file/index.js
index 97b0d96..4bdf045 100644
--- a/www/file/index.js
+++ b/www/file/index.js
@@ -89,13 +89,11 @@ function testNotModified(ev) {
     var lastModified = new Date();
     var headers = { "If-Modified-Since": lastModified.toUTCString()};
     logMessage("Starting cached download with headers: " + JSON.stringify(headers));
-    ft.download(imageURL, "", function() {
-        logError("ft.download");
-    }, function (error) {
+    ft.download(imageURL, "", logError("ft.download"),function (error) {
       if (error.code === 5) {
         logMessage("Success, the file was not modified.", "green");
       } else {
-        logError("ft.download");
+        logError("ft.download")("The error code was " + error.code + ": " + error.exception);
       }
 
     }, false, {headers: headers});


Mime
View raw message