summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-25 22:39:59 +0100
committerGitHub <noreply@github.com>2021-02-25 22:39:59 +0100
commit94f78f276b530d2ff0ed6735b346bb726cfb1e15 (patch)
treee85ad2e4a64123decee795f4018143c48a8199f2
parentf3f6c62b147381873c2dfe2f239ef6111a3ac202 (diff)
parentedb8c119701e2dce60ff7c9fcbd062e54642511a (diff)
Merge pull request #45061 from razonixx/Add_warning_when_dir_is_inaccesible
Add descriptive error message when trying to access a dir fails
-rw-r--r--core/os/dir_access.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/dir_access.cpp b/core/os/dir_access.cpp
index fb9da9fbed..b7c3a17ba9 100644
--- a/core/os/dir_access.cpp
+++ b/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);
}
}