Merge pull request #100219 from migueldeicaza/fix-zip-export-error
Export: Propagate `save_zip` error to callers.
This commit is contained in:
commit
9207487bd6
1 changed files with 3 additions and 0 deletions
|
|
@ -2244,6 +2244,8 @@ Error EditorExportPlatform::save_zip(const Ref<EditorExportPreset> &p_preset, bo
|
|||
Error err = export_project_files(p_preset, p_debug, p_save_func, nullptr, &zd, _zip_add_shared_object);
|
||||
if (err != OK && err != ERR_SKIP) {
|
||||
add_message(EXPORT_MESSAGE_ERROR, TTR("Save ZIP"), TTR("Failed to export project files."));
|
||||
zipClose(zip, nullptr);
|
||||
return err;
|
||||
}
|
||||
|
||||
zipClose(zip, nullptr);
|
||||
|
|
@ -2260,6 +2262,7 @@ Error EditorExportPlatform::save_zip(const Ref<EditorExportPreset> &p_preset, bo
|
|||
if (err != OK) {
|
||||
da->remove(tmppath);
|
||||
add_message(EXPORT_MESSAGE_ERROR, TTR("Save ZIP"), vformat(TTR("Failed to move temporary file \"%s\" to \"%s\"."), tmppath, p_path));
|
||||
return err;
|
||||
}
|
||||
|
||||
return OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue