diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-03-05 22:55:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 22:55:16 +0100 |
commit | 2e79ec973f7e28de7ed550fe74f170c92d9dc298 (patch) | |
tree | 49276ca12a464bda28adc20aec2f8e97e2e21b65 /platform/iphone | |
parent | 88355b2719fe7a103e6da82c1f58361190f2e1f1 (diff) | |
parent | 3fdbdd838074b3f6b78e6f6c2fae1f3a407c2446 (diff) |
Merge pull request #26626 from rluders/misleading-error-message-export
Fixing misleading error message when trying to export
Diffstat (limited to 'platform/iphone')
-rw-r--r-- | platform/iphone/export/export.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp index 67034388b9..05907be020 100644 --- a/platform/iphone/export/export.cpp +++ b/platform/iphone/export/export.cpp @@ -836,6 +836,10 @@ Error EditorExportPlatformIOS::export_project(const Ref<EditorExportPreset> &p_p } } + if (!FileAccess::exists(dest_dir)) { + return ERR_FILE_BAD_PATH; + } + DirAccess *da = DirAccess::create(DirAccess::ACCESS_FILESYSTEM); if (da) { String current_dir = da->get_current_dir(); |