diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-07-20 12:00:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-20 12:00:13 +0200 |
commit | d15cf7b672ac9911b4e82fed52b4c5e8d4312b0d (patch) | |
tree | 68ab08fafd7e14710ce245a47f3bb518ebf03307 /platform/iphone/export/export.cpp | |
parent | 700938bff772924941c4e1ea61bbfd2abe34d8d2 (diff) | |
parent | 6cbaf7662f5ee3ca1d02c0ebc85854fceee057af (diff) |
Merge pull request #30576 from qarmin/lgtm_coverage
Changed some code reported by LGTM and Coverity
Diffstat (limited to 'platform/iphone/export/export.cpp')
-rw-r--r-- | platform/iphone/export/export.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp index 85a45d62f8..a179b36bd5 100644 --- a/platform/iphone/export/export.cpp +++ b/platform/iphone/export/export.cpp @@ -768,7 +768,8 @@ Error EditorExportPlatformIOS::_export_additional_assets(const String &p_out_dir DirAccess *da = DirAccess::create_for_path(asset); if (!da) { memdelete(filesystem_da); - ERR_FAIL_COND_V(!da, ERR_CANT_CREATE); + ERR_EXPLAIN("Can't create directory: " + asset); + ERR_FAIL_V(ERR_CANT_CREATE); } bool file_exists = da->file_exists(asset); bool dir_exists = da->dir_exists(asset); |