1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Improved error checking at EditorExportPlatformPC::export_project

This commit is contained in:
Marcelo Fernandez
2018-03-06 12:13:18 -03:00
parent 4f1b87265e
commit 0876502f72
3 changed files with 24 additions and 24 deletions

View File

@@ -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);