You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by kn...@apache.org on 2019/03/09 06:27:55 UTC

[cordova-plugin-file] branch travis_tests updated: add error log in resolveLocalSystemURI in FileProxy'

This is an automated email from the ASF dual-hosted git repository.

knaito pushed a commit to branch travis_tests
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-file.git


The following commit(s) were added to refs/heads/travis_tests by this push:
     new 1feca7e  add error log in resolveLocalSystemURI in FileProxy'
1feca7e is described below

commit 1feca7e9097357b25a0f05c4a69aa8c5dbba9452
Author: knaito <kn...@asial.co.jp>
AuthorDate: Sat Mar 9 15:27:34 2019 +0900

    add error log in resolveLocalSystemURI in FileProxy'
---
 src/browser/FileProxy.js | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/browser/FileProxy.js b/src/browser/FileProxy.js
index 3b2b4ff..93de3c7 100644
--- a/src/browser/FileProxy.js
+++ b/src/browser/FileProxy.js
@@ -587,10 +587,17 @@
 
                 exports.requestFileSystem(function () {
                     exports.getFile(successCallback, function () {
-                        exports.getDirectory(successCallback, errorCallback, [pathsPrefix.dataDirectory, path,
+                        window.customLog('log', 'getFile is called');
+                        exports.getDirectory(successCallback, function (err) {
+                            window.customLog('log', 'getDirectory errorcallback is called');
+                            errorCallback(err);
+                        }, [pathsPrefix.dataDirectory, path,
                         {create: false}]);
                     }, [pathsPrefix.dataDirectory, path, {create: false}]);
-                }, errorCallback, [LocalFileSystem.PERSISTENT]);
+                }, function (err) {
+                    window.customLog('log', 'getFile errorcallback is called');
+                    errorCallback(err);
+                }, [LocalFileSystem.PERSISTENT]);
             } else if (path.indexOf(pathsPrefix.cacheDirectory) === 0) {
                 window.customLog('log', 'resolveLocalFileSystemURI is called step 5');
                 path = path.substring(pathsPrefix.cacheDirectory.length - 1);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org