summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-21 08:54:32 +0200
committerGitHub <noreply@github.com>2019-08-21 08:54:32 +0200
commit7b37321ae3996b8660f18ae8b2b630e9c1940621 (patch)
tree8c7c5bed7ad8cee04995c48a9206f2269ff049ae /core
parent093798c976373a664a8e274ae31774e8dcf2238a (diff)
parentb49226e0850d6dd30801881433bf3fef1f1608b1 (diff)
Merge pull request #31499 from nekomatata/fix-new-project-metadata
Setting project metadata doesn't fail when project_metadata.cfg doesn't exist
Diffstat (limited to 'core')
-rw-r--r--core/io/config_file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/config_file.cpp b/core/io/config_file.cpp
index 70bb816acd..9063e028be 100644
--- a/core/io/config_file.cpp
+++ b/core/io/config_file.cpp
@@ -201,7 +201,7 @@ Error ConfigFile::load(const String &p_path) {
FileAccess *f = FileAccess::open(p_path, FileAccess::READ, &err);
if (!f)
- return ERR_CANT_OPEN;
+ return err;
return _internal_load(p_path, f);
}