Merge pull request #26626 from rluders/misleading-error-message-export

Fixing misleading error message when trying to export
This commit is contained in:
Rémi Verschelde 2019-03-05 22:55:16 +01:00 committed by GitHub
commit 2e79ec973f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 29 additions and 1 deletions

View file

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