mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
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
This commit is contained in:
@@ -1265,6 +1265,10 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
if (!FileAccess::exists(p_path.get_base_dir())) {
|
||||
return ERR_FILE_BAD_PATH;
|
||||
}
|
||||
|
||||
Error err = OK;
|
||||
|
||||
FileAccess *fa_pack = FileAccess::open(p_path, FileAccess::WRITE, &err);
|
||||
|
||||
Reference in New Issue
Block a user