diff options
author | Carlos Cabello <carloscabello364@gmail.com> | 2021-01-09 19:13:25 -0600 |
---|---|---|
committer | Carlos Cabello <carloscabello364@gmail.com> | 2021-02-25 22:24:21 +0100 |
commit | edb8c119701e2dce60ff7c9fcbd062e54642511a (patch) | |
tree | 7e7fa47877e6c50dadaf5edb1c0884428b0a3185 | |
parent | 494e1cb1487c90425e3f5ae2cdf9e4046c3f550c (diff) |
Add descriptive error message when trying to access a dir fails
-rw-r--r-- | core/os/dir_access.cpp | 2 |
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); } } |