android: Fix error reporting for unknown uri type on sourceUri instead of targetUri

This commit is contained in:
Kelly Campbell
2015-01-31 17:05:41 -05:00
parent c12f1eb9be
commit 0aae94495f
+1 -1
View File
@@ -713,7 +713,7 @@ public class FileTransfer extends CordovaPlugin {
final boolean isLocalTransfer = !useHttps && uriType != CordovaResourceApi.URI_TYPE_HTTP;
if (uriType == CordovaResourceApi.URI_TYPE_UNKNOWN) {
JSONObject error = createFileTransferError(INVALID_URL_ERR, source, target, null, 0, null);
Log.e(LOG_TAG, "Unsupported URI: " + targetUri);
Log.e(LOG_TAG, "Unsupported URI: " + sourceUri);
callbackContext.sendPluginResult(new PluginResult(PluginResult.Status.IO_EXCEPTION, error));
return;
}