diff options
author | Ricardo Lüders <rluders@redhat.com> | 2019-03-05 08:52:45 +0100 |
---|---|---|
committer | Ricardo Lüders <rluders@redhat.com> | 2019-03-05 21:32:52 +0100 |
commit | 3fdbdd838074b3f6b78e6f6c2fae1f3a407c2446 (patch) | |
tree | f6c98fbe599f9605ee4afb63bc4b0a24d8cb3288 /platform/iphone/export/export.cpp | |
parent | 9dd9737cb43dc871661945adcc1784756f28a118 (diff) |
Fixes misleading error message when trying to export
This patch fixes the misleading error message when users
try to "export all" into an invalid destination path.
Closes #26539
Diffstat (limited to 'platform/iphone/export/export.cpp')
-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 c45931fdfd..7b3f99da9a 100644 --- a/platform/iphone/export/export.cpp +++ b/platform/iphone/export/export.cpp @@ -840,6 +840,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(); |