Explorar o código

Merge pull request #45061 from razonixx/Add_warning_when_dir_is_inaccesible

Add descriptive error message when trying to access a dir fails
Rémi Verschelde %!s(int64=4) %!d(string=hai) anos
pai
achega
94f78f276b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/os/dir_access.cpp

+ 1 - 1
core/os/dir_access.cpp

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