CB-6781: Expose FileTransferError.exception to application

This commit is contained in:
Ian Clelland
2014-07-14 10:56:08 -04:00
parent 7e331313f6
commit bdd3e2d56f
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -125,7 +125,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, e.body);
var error = new FileTransferError(e.code, e.source, e.target, e.http_status, e.body, e.exception);
errorCallback(error);
};
@@ -191,7 +191,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, e.body);
var error = new FileTransferError(e.code, e.source, e.target, e.http_status, e.body, e.exception);
errorCallback(error);
};