From d6c67d05216f4aaa9127a71c05cbc48491c92ca0 Mon Sep 17 00:00:00 2001 From: Carlos Cabello Date: Sat, 9 Jan 2021 19:13:25 -0600 Subject: [PATCH] Add descriptive error message when trying to access a dir fails (cherry picked from commit edb8c119701e2dce60ff7c9fcbd062e54642511a) --- core/os/dir_access.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/os/dir_access.cpp b/core/os/dir_access.cpp index 2f40cf34c6b..16959c01923 100644 --- a/core/os/dir_access.cpp +++ b/core/os/dir_access.cpp @@ -181,8 +181,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); } }