Forráskód Böngészése

Add descriptive error message when trying to access a dir fails

(cherry picked from commit edb8c119701e2dce60ff7c9fcbd062e54642511a)
Carlos Cabello 4 éve
szülő
commit
d6c67d0521
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      core/os/dir_access.cpp

+ 1 - 2
core/os/dir_access.cpp

@@ -181,8 +181,7 @@ Error DirAccess::make_dir_recursive(String p_dir) {
 		curpath = curpath.plus_file(subdirs[i]);
 		curpath = curpath.plus_file(subdirs[i]);
 		Error err = make_dir(curpath);
 		Error err = make_dir(curpath);
 		if (err != OK && err != ERR_ALREADY_EXISTS) {
 		if (err != OK && err != ERR_ALREADY_EXISTS) {
-
-			ERR_FAIL_V(err);
+			ERR_FAIL_V_MSG(err, "Could not create directory: " + curpath);
 		}
 		}
 	}
 	}