diff options
author | Ricardo Lüders <rluders@redhat.com> | 2019-03-05 08:52:45 +0100 |
---|---|---|
committer | Ricardo Lüders <rluders@redhat.com> | 2019-03-05 21:32:52 +0100 |
commit | 3fdbdd838074b3f6b78e6f6c2fae1f3a407c2446 (patch) | |
tree | f6c98fbe599f9605ee4afb63bc4b0a24d8cb3288 /platform/uwp/export/export.cpp | |
parent | 9dd9737cb43dc871661945adcc1784756f28a118 (diff) |
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
Diffstat (limited to 'platform/uwp/export/export.cpp')
-rw-r--r-- | platform/uwp/export/export.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/uwp/export/export.cpp b/platform/uwp/export/export.cpp index a4655117a7..8405608dd6 100644 --- a/platform/uwp/export/export.cpp +++ b/platform/uwp/export/export.cpp @@ -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); |