Skip to content

Commit e10f658

Browse files
authored
Merge pull request #308 from JediahDizon/master
Fix error message on `mkdir` function
2 parents 9a10735 + c5f9a66 commit e10f658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ private static void deleteRecursive(File fileOrDirectory) throws IOException {
535535
static void mkdir(String path, Promise promise) {
536536
File dest = new File(path);
537537
if(dest.exists()) {
538-
promise.reject("EEXIST", dest.isDirectory() ? "Folder" : "File" + " '" + path + "' already exists");
538+
promise.reject("EEXIST", (dest.isDirectory() ? "Folder" : "File") + " '" + path + "' already exists");
539539
return;
540540
}
541541
try {

0 commit comments

Comments
 (0)