cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtan...@apache.org
Subject [25/31] js commit: CB-2103: File Transfer didn't send the body to the FileTransferError constructor.
Date Wed, 27 Feb 2013 21:09:56 GMT
CB-2103: File Transfer didn't send the body to the FileTransferError constructor.


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

Branch: refs/heads/next
Commit: 91d53eb6f26cd097caed3d11561bf026326fc1a4
Parents: cded0ad
Author: Joe Bowser <bowserj@apache.org>
Authored: Fri Feb 22 11:46:25 2013 -0800
Committer: Joe Bowser <bowserj@apache.org>
Committed: Fri Feb 22 11:46:25 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/91d53eb6/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