mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 02:21:15 +00:00
Add descriptive error message when trying to access a dir fails
This commit is contained in:
parent
494e1cb148
commit
edb8c11970
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue