summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-24 16:15:57 +0200
committerGitHub <noreply@github.com>2019-10-24 16:15:57 +0200
commit091c37d921c495bd9d21054e90c63078bf8970d5 (patch)
treefd4f4caa60e26ba12789cdb850bc3a2c3c622226 /core
parent79dae3a87e1c8a66897fc1816059f39c8f25cde4 (diff)
parent113765b135efab9badd798ec14afbdb925d5dfc3 (diff)
Merge pull request #33030 from Xrayez/vformat-err-msg
Display error messages in console when vformat is called
Diffstat (limited to 'core')
-rw-r--r--core/variant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant.cpp b/core/variant.cpp
index 16bbf94c54..e0cc6685f4 100644
--- a/core/variant.cpp
+++ b/core/variant.cpp
@@ -3299,7 +3299,7 @@ String vformat(const String &p_text, const Variant &p1, const Variant &p2, const
bool error = false;
String fmt = p_text.sprintf(args, &error);
- ERR_FAIL_COND_V(error, String());
+ ERR_FAIL_COND_V_MSG(error, String(), fmt);
return fmt;
}