summaryrefslogtreecommitdiff
path: root/platform/iphone
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-03-05 22:55:16 +0100
committerGitHub <noreply@github.com>2019-03-05 22:55:16 +0100
commit2e79ec973f7e28de7ed550fe74f170c92d9dc298 (patch)
tree49276ca12a464bda28adc20aec2f8e97e2e21b65 /platform/iphone
parent88355b2719fe7a103e6da82c1f58361190f2e1f1 (diff)
parent3fdbdd838074b3f6b78e6f6c2fae1f3a407c2446 (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.cpp4
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();