summaryrefslogtreecommitdiffstats
path: root/core/variant.cpp
diff options
context:
space:
mode:
authorAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2019-10-24 15:14:55 +0300
committerAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2019-10-24 15:14:55 +0300
commit113765b135efab9badd798ec14afbdb925d5dfc3 (patch)
tree5e1e786f94635b5c79b6b28455f4c93d5eaa5f30 /core/variant.cpp
parent9008cc486e28553ff8ea07639245efedcf545be2 (diff)
downloadredot-engine-113765b135efab9badd798ec14afbdb925d5dfc3.tar.gz
Display error messages in console when vformat is called
Diffstat (limited to 'core/variant.cpp')
-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;
}