cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtan...@apache.org
Subject [24/31] js commit: CB-2103: Forgot to send the response body to the error callback. Fixed now.
Date Wed, 27 Feb 2013 21:09:56 GMT
CB-2103: Forgot to send the response body to the error callback. Fixed now.


Project: http://git-wip-us.apache.org/repos/asf/cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-js/commit/05913de4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-js/tree/05913de4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-js/diff/05913de4

Branch: refs/heads/next
Commit: 05913de4d4781308e6603c096ed54659d8e5456c
Parents: efefa97
Author: Fil Maj <maj.fil@gmail.com>
Authored: Fri Feb 22 11:41:59 2013 -0800
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Fri Feb 22 11:41:59 2013 -0800

----------------------------------------------------------------------
 lib/common/plugin/FileTransfer.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/05913de4/lib/common/plugin/FileTransfer.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/FileTransfer.js b/lib/common/plugin/FileTransfer.js
index 7e7af61..3a9fda2 100644
--- a/lib/common/plugin/FileTransfer.js
+++ b/lib/common/plugin/FileTransfer.js
@@ -79,7 +79,7 @@ FileTransfer.prototype.upload = function(filePath, server, successCallback,
erro
     }
 
     var fail = errorCallback && function(e) {
-        var error = new FileTransferError(e.code, e.source, e.target, e.http_status);
+        var error = new FileTransferError(e.code, e.source, e.target, e.http_status, e.body);
         errorCallback(error);
     };
 
@@ -129,7 +129,7 @@ FileTransfer.prototype.download = function(source, target, successCallback,
erro
     };
 
     var fail = errorCallback && function(e) {
-        var error = new FileTransferError(e.code, e.source, e.target, e.http_status);
+        var error = new FileTransferError(e.code, e.source, e.target, e.http_status, e.body);
         errorCallback(error);
     };
 


Mime
View raw message