Merge pull request #45061 from razonixx/Add_warning_when_dir_is_inaccesible

Add descriptive error message when trying to access a dir fails
This commit is contained in:
Rémi Verschelde 2021-02-25 22:39:59 +01:00 committed by GitHub
commit 94f78f276b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}