You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/03/20 16:48:51 UTC

[07/40] js commit: CB-2103: File Transfer didn't send the body to the FileTransferError constructor.

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/cb2227
Commit: 91d53eb6f26cd097caed3d11561bf026326fc1a4
Parents: cded0ad
Author: Joe Bowser <bo...@apache.org>
Authored: Fri Feb 22 11:46:25 2013 -0800
Committer: Joe Bowser <bo...@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);
     };