summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Cabello <carloscabello364@gmail.com>2021-01-09 19:13:25 -0600
committerCarlos Cabello <carloscabello364@gmail.com>2021-02-25 22:24:21 +0100
commitedb8c119701e2dce60ff7c9fcbd062e54642511a (patch)
tree7e7fa47877e6c50dadaf5edb1c0884428b0a3185
parent494e1cb1487c90425e3f5ae2cdf9e4046c3f550c (diff)
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);
}
}