Browse Source

Fix error message on `mkdir` function

Jediah Dizon 5 years ago
parent
commit
c5f9a668af
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

+ 1
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java View File

523
     static void mkdir(String path, Promise promise) {
523
     static void mkdir(String path, Promise promise) {
524
         File dest = new File(path);
524
         File dest = new File(path);
525
         if(dest.exists()) {
525
         if(dest.exists()) {
526
-            promise.reject("EEXIST", dest.isDirectory() ? "Folder" : "File" + " '" + path + "' already exists");
526
+            promise.reject("EEXIST", (dest.isDirectory() ? "Folder" : "File") + " '" + path + "' already exists");
527
             return;
527
             return;
528
         }
528
         }
529
         try {
529
         try {