diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-03-06 12:13:18 -0300 |
---|---|---|
committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-03-06 14:23:17 -0300 |
commit | 0876502f7288a6d4e4bfb58f8692db3516bebb7c (patch) | |
tree | 346026f671310dbcedf6209414c3bfa88537e84a /core/os | |
parent | 4f1b87265e1e74b1fdd0aa0aa59a9daf03fd3f40 (diff) |
Improved error checking at EditorExportPlatformPC::export_project
Diffstat (limited to 'core/os')
-rw-r--r-- | core/os/dir_access.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/os/dir_access.cpp b/core/os/dir_access.cpp index 1941b82602..330a9153ef 100644 --- a/core/os/dir_access.cpp +++ b/core/os/dir_access.cpp @@ -301,8 +301,8 @@ Error DirAccess::copy(String p_from, String p_to, int p_chmod_flags) { FileAccess *fsrc = FileAccess::open(p_from, FileAccess::READ, &err); if (err) { - - ERR_FAIL_COND_V(err, err); + ERR_PRINTS("Failed to open " + p_from); + return err; } FileAccess *fdst = FileAccess::open(p_to, FileAccess::WRITE, &err); @@ -310,7 +310,8 @@ Error DirAccess::copy(String p_from, String p_to, int p_chmod_flags) { fsrc->close(); memdelete(fsrc); - ERR_FAIL_COND_V(err, err); + ERR_PRINTS("Failed to open " + p_to); + return err; } fsrc->seek_end(0); |