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:
parent
9dd9737cb4
commit
3fdbdd8380
7 changed files with 29 additions and 1 deletions
|
|
@ -1489,6 +1489,10 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
if (!FileAccess::exists(p_path.get_base_dir())) {
|
||||
return ERR_FILE_BAD_PATH;
|
||||
}
|
||||
|
||||
FileAccess *src_f = NULL;
|
||||
zlib_filefunc_def io = zipio_create_io_from_file(&src_f);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue