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:50 UTC
[06/40] js commit: CB-2103: Forgot to send the response body to the
error callback. Fixed now.
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/cb2227
Commit: 05913de4d4781308e6603c096ed54659d8e5456c
Parents: efefa97
Author: Fil Maj <ma...@gmail.com>
Authored: Fri Feb 22 11:41:59 2013 -0800
Committer: Fil Maj <ma...@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);
};