From c5f9a668af14dc586c4b88e61a91a65aba10a6ff Mon Sep 17 00:00:00 2001 From: Jediah Dizon Date: Fri, 22 Feb 2019 18:43:52 -0700 Subject: [PATCH] Fix error message on `mkdir` function --- android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java b/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java index 101e8033a..225667a2c 100644 --- a/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java +++ b/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java @@ -523,7 +523,7 @@ private static void deleteRecursive(File fileOrDirectory) throws IOException { static void mkdir(String path, Promise promise) { File dest = new File(path); if(dest.exists()) { - promise.reject("EEXIST", dest.isDirectory() ? "Folder" : "File" + " '" + path + "' already exists"); + promise.reject("EEXIST", (dest.isDirectory() ? "Folder" : "File") + " '" + path + "' already exists"); return; } try {